Content deleted Content added
Added an implementation details |
No edit summary |
||
Line 26:
--- fact 0 <= 1;
--- fact n <= n*fact(n-1);
Unlike [[Haskell (programming language)|Haskell]], changing the order of the clauses does not change the meaning of the program, because Hope's pattern matching always favors more specific patterns over less specific ones. Another way in which Hope differs from Haskell and [[:Category:ML programming language family|ML]] is that explicit type declarations in Hope are required: there is no option to use a type-inference algorithm in Hope.
|