Content deleted Content added
Phil Boswell (talk | contribs) Category:Programming languages is redundant |
big expansion |
||
Line 1:
'''Hope''' is a small [[functional (programming)|functional]] [[programming language]], with [[strongly-typed programming languages|strong]] [[polymorphism (computer science)|polymorphic typing]], [[algebraic
A factorial program in Hope is
dec fact : num -> num;
--- fact 0 <= 1;
--- fact n <= n*fact(n-1);
Unlike in [[Haskell]], changing the order of the clauses would not change the meaning of the program, because Hope's pattern matching always favors more specific patterns over less specific ones.
==External link==
*[http://www.soi.city.ac.uk/~ross/Hope/ Hope homepage]
{{compu-lang-stub}}
[[Category:Functional languages]]
|