note 109569 deleted from functions.anonymous by aharvey
| From: | aharvey@php.net | Date: | Mon, 30 Jul 2012 02:06:16 +0000 |
| Subject: | note 109569 deleted from functions.anonymous by aharvey | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-189457@lists.php.net to get a copy of this message | ||
Note Submitter: Wiktor
----
Well... as far as I know it's anonymous functions, not closures.
http://en.wikipedia.org/wiki/Closure_%28computer_science%29
"The term closure is often mistakenly used to mean anonymous function. This is probably because
most languages implementing anonymous functions allow them to form closures and programmers are
usually introduced to both concepts at the same time. An anonymous function can be seen as a
function literal, while a closure is a function value. These are, however, distinct concepts. A
closure retains a reference to the environment at the time it was created (for example, to the
current value of a local variable in the enclosing scope) while a generic anonymous function need
not do this."