Immediately invoked function expression: Difference between revisions

Content deleted Content added
m Examples: style, punct.
m Terminology: punct., style
Line 113:
 
==Terminology==
"Immediately-invoked function expression" as a term describes a design pattern whichthat has also been referred to as a "self-executing anonymous function.".<ref name=Alman /><ref name=Enlighten /> However, immediately-invoked functions do not need to be anonymous, and [[ECMAScript]] 5's strict mode forbids <code>arguments.callee</code>,<ref>{{cite web|title=Strict mode|url=https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Functions_and_function_scope/Strict_mode#Making_eval_and_arguments_simpler|work=Mozilla JavaScript Reference|publisher=Mozilla Developer Network|accessdate=4 February 2013}}</ref> making the latter term less accurate.<ref name=Osmani /><ref name=JQ />
 
In [[lambda- calculus]], this construct was referred to as "redex", for reducible expression, see [[Reduction strategy (code optimization)]].
 
==References==