Closure (computer programming): Difference between revisions

Content deleted Content added
No edit summary
Tags: Reverted Visual edit
No edit summary
Tags: Reverted Visual edit
Line 3:
{{Distinguish|text=the programming language [[Clojure]]}}
{{Use dmy dates|date=August 2020}}
In [[programming language]]s, a '''closure''' or '''function closure''', is meant the storage of a function (code) and the values of its parameters when invoked. [[Operational semantics|Operationally]], a closure is a [[Record (computer science)|record]] storing a [[Function (computer science)|function]]{{efn|The function may be stored as a [[Reference (computer science)|reference]] to a function, such as a [[function pointer]].}} together with the association to each parameter of the function of a [[Value (computer science)|value]] or [[Reference (computer science)|reference]], called ''context''.{{efn|These names usually refer to values, mutable variables, or functions, but can also be other entities such as constants, types, classes, or labels.}}
 
== History and etymology ==