Jump to content

Higher-order programming

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by FrescoBot (talk | contribs) at 04:19, 18 September 2011 (Bot: link syntax/spacing). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Higher-order programming is a style of computer programming that uses functions as values. It is usually instantiated with, or borrowed from, models of computation like the lambda calculus which make heavy use of higher-order functions.

For example, in higher-order programming, one can pass functions as arguments to other functions and functions can be the return value of other functions (such as in macros or for interpreting). This style of programming is mostly used in functional programming, but it can also be very useful in 'regular' object-oriented programming.

Prominent examples of languages supporting this are C#, ECMAScript (ActionScript, JavaScript), F#, Haskell, Lisp (Common Lisp, Scheme, Clojure, others), Lua, Oz, Perl, Python, Ruby, Smalltalk.