NPL (programming language)
Appearance
From Wikipedia, the free encyclopedia
For other programming languages and concepts abbreviated as NPL, see NPL (disambiguation).
This article has multiple issues. Please help improve it or discuss these issues on the talk page . (Learn how and when to remove these messages)
(Learn how and when to remove this message)This article relies excessively on references to primary sources . Please improve this article by adding secondary or tertiary sources.
Find sources: "NPL" programming language – news · newspapers · books · scholar · JSTOR (July 2019) (Learn how and when to remove this message)
Find sources: "NPL" programming language – news · newspapers · books · scholar · JSTOR (July 2019) (Learn how and when to remove this message)
This article includes a list of general references, but it lacks sufficient corresponding inline citations . Please help to improve this article by introducing more precise citations. (July 2019) (Learn how and when to remove this message)
NPL is a functional programming language with pattern matching designed by Rod Burstall and John Darlington in 1977. The language allows certain sets and logic constructs to appear on the right-hand side of definitions, e.g.
setofeven(X) <= <:x: x in X & even(x) :>
The NPL interpreter evaluates the list of generators from left to right so conditions can mention any bound variables that occur to their left. These were known as set comprehensions. NPL eventually evolved into Hope but lost set comprehensions, which made a reappearance in the form of list comprehensions in later functional languages.[1]
References
[edit ]- ^ This article is based on material taken from NPL at the Free On-line Dictionary of Computing prior to 1 November 2008 and incorporated under the "relicensing" terms of the GFDL, version 1.3 or later.
- John Darlington (1977). "Program Transformation and Synthesis: Present Capabilities". Research Report No. 77/43, Dept. of Computing and Control, Imperial College of Science and Technology, London.
Stub icon
This programming-language-related article is a stub. You can help Wikipedia by expanding it.