Mercury (programming language): Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1:
'''Mercury''' is a functional/logical [[programming language]] based on [[Prolog]], but designed to be more useful for real-world programming problems.
 
Mercury is compiled rather than interpreted as is traditional for [[logic programming|logic languages]],. itIt has a sophisticated, strict [[Data type|type]] and mode system which, when combined with the abstract nature of logic programming, is claimed by its authors to make writing reliable programs simpler and faster than by more conventional means. Mercury's module system also makes it easy to divide logic programs up into self-contained modules, a problem for logic programs in the past.
 
A sample piece of programming in Mercury looks like