Anonymous function: Difference between revisions

Content deleted Content added
Line 190:
The following is a list of [[programming language]]s that support unnamed anonymous functions fully, or partly as some variant, or not at all.
 
This table shows some general trends. First, the languages that do not support anonymous functions ([[C (programming language)|C]], [[Pascal (programming language)|Pascal]], [[Object Pascal]]) are all [[statically typed]] languages. However, statically typed languages can support anonymous functions. For example, the [[ML (programming language)|ML]] languages are statically typed and fundamentally include anonymous functions, and [[Delphi (programming language)|Delphi]], a dialect of [[Object Pascal]], has been extended to support anonymous functions, as has [[C++]] (by the [[C++11]] standard). Second, the languages that treat functions as [[first-class function]]s ([[Dylan (programming language)|Dylan]], [[Haskell (programming language)|Haskell]], [[JavaScript]], [[Lisp (programming language)|Lisp]], [[ML (programming language)|ML]], [[Perl]], [[Python (programming language)|Python]], [[Ruby (programming language)|Ruby]], [[Scheme (programming language)|Scheme]]) generally have anonymous function support so that functions can be defined and passed around as easily as other data types.
 
{{Expand list|date=August 2008}}