3 ms·
No, this isn't what the Wikipedia article says. To quote: In programming languages, closures (also lexical closures or function closures) are a techniq
by samth 11y ago
No, this isn't what the Wikipedia article says. To quote:
In programming languages, closures (also lexical closures
or function closures) are a technique for implementing
lexically scoped name binding in languages with first-
class functions.
which is the same definition that wingo is using. Stack allocation is another technique for implementing lexical scope, if the relevant bindings are still on the stack.