note 109569 added to functions.anonymous
| From: | Wiktor | Date: | Sun, 29 Jul 2012 20:44:49 +0000 |
| Subject: | note 109569 added to functions.anonymous | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-189454@lists.php.net to get a copy of this message | ||
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."
----
Server IP: 69.147.83.197
Probable Submitter: 213.156.103.119
----
Manual Page -- http://www.php.net/manual/en/functions.anonymous.php
Edit -- https://master.php.net/note/edit/109569
Del: integrated -- https://master.php.net/note/delete/109569/integrated
Del: useless -- https://master.php.net/note/delete/109569/useless
Del: bad code -- https://master.php.net/note/delete/109569/bad+code
Del: spam -- https://master.php.net/note/delete/109569/spam
Del: non-english -- https://master.php.net/note/delete/109569/non-english
Del: in docs -- https://master.php.net/note/delete/109569/in+docs
Del: other reasons-- https://master.php.net/note/delete/109569
Reject -- https://master.php.net/note/reject/109569
Search -- https://master.php.net/manage/user-notes.php