Jesús Gómez on Nostr: "Best" definition of #Closure: "The concept of 'closure' is the idea that a lambda ...
"Best" definition of #Closure:
"The concept of 'closure' is the idea that a lambda expression 'captures'
the variable bindings that are in lexical scope at the point where the
lambda expression occurs. The procedure created by the lambda
expression can refer to and mutate the captured bindings, and the values
of those bindings persist between procedure calls." - GNU #Guile manual
procedure = function
lambda expression = build a function expression
lexical scope = what you can reach by reading
"The concept of 'closure' is the idea that a lambda expression 'captures'
the variable bindings that are in lexical scope at the point where the
lambda expression occurs. The procedure created by the lambda
expression can refer to and mutate the captured bindings, and the values
of those bindings persist between procedure calls." - GNU #Guile manual
procedure = function
lambda expression = build a function expression
lexical scope = what you can reach by reading