Function styles: Difference between revisions

Jump to navigation Jump to search
m
→‎Anonymous functions: Change J wiki reference to a simple link
m (→‎Anonymous functions: No clear need for a stand-alone article)
m (→‎Anonymous functions: Change J wiki reference to a simple link)
Line 19: Line 19:
In the 1990s array language designers began experimenting with forms that allowed a function to be created without ever giving it a name, often influenced by [[wikipedia:Lisp (programming language)|Lisp]]'s lambda expressions. Such anonymous forms appeared in several languages, including an early but less influential form in [[NARS]]:
In the 1990s array language designers began experimenting with forms that allowed a function to be created without ever giving it a name, often influenced by [[wikipedia:Lisp (programming language)|Lisp]]'s lambda expressions. Such anonymous forms appeared in several languages, including an early but less influential form in [[NARS]]:
* 1981: [[NARS]] defines its own type of [[direct definition (NARS)|direct definition]] written with two strings joined by the operator <syntaxhighlight lang=apl inline>∇</syntaxhighlight>
* 1981: [[NARS]] defines its own type of [[direct definition (NARS)|direct definition]] written with two strings joined by the operator <syntaxhighlight lang=apl inline>∇</syntaxhighlight>
* 1990: [[J]] uses the <syntaxhighlight lang=j inline>:</syntaxhighlight> operator for "explicit definition"; in 2020 it adds a more [[dfn]]-like "direct definition"<ref>Jsoftware. [https://code.jsoftware.com/wiki/Vocabulary/DirectDefinition Direct Definition]. Accessed 2020-10-24.</ref> syntax with doubled curly braces
* 1990: [[J]] uses the <syntaxhighlight lang=j inline>:</syntaxhighlight> operator for "explicit definition"; in 2020 it adds a more [[dfn]]-like [https://code.jsoftware.com/wiki/Vocabulary/DirectDefinition direct definition] syntax with doubled curly braces
* 1994: [[K]]'s functions are written with curly braces
* 1994: [[K]]'s functions are written with curly braces
* 1996: [[Dyalog APL]] adds [[dfn]]s, another kind of functions written with curly braces
* 1996: [[Dyalog APL]] adds [[dfn]]s, another kind of functions written with curly braces

Navigation menu