Teachers Paradise School Supplies Teacher Resources Free Encyclopedia
Teachers Paradise FREE Teaching Resources
Home Arts Crafts Audio Visual Equipment Office Supplies Teacher Resources
Main Page | Edit this page

Mercury programming language

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 languages, it has a sophisticated, strict 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

:- module hello_world.
:- interface.
:- import_module io.
:- pred main(io__state, io__state).
:- mode main(di, uo) is det.
:- implementation.
main -->
	io__write_string("Hello, World!\\n").

(by Ralph Brecket at the University of Melbourne):

Mercury is developed at the University Of Melbourne Computer Science department under the supervision of Dr. Zoltan Somogyi.

See also:

External Links




Pay for Educational Supplies & Teaching Supplies with Visa, Master Card, American Express, Discover or Paypal.
TeachersParadise.com HOME | Safe Shopping Guarantee | Help Desk
All trademarks & brands are the property of their respective owners.
Legal Notice 2000-2008 TeachersParadise.com, Inc. All Rights Reserved