note 95673 deleted from functions.anonymous by thiago

From: Date: Fri, 15 Jan 2010 12:11:06 +0000
Subject: note 95673 deleted from functions.anonymous by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-164995@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- This page said: "Anonymous functions, also known as closures..." But http://en.wikipedia.org/wiki/Closure_(computer_science) said: "In computer science, a closure is a first-class function with free variables that are bound in the lexical environment. Such a function is said to be 'closed over' its free variables. A closure is defined within the scope of its free variables, and the extent of those variables is at least as long as the lifetime of the closure itself." and "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. These are, however, distinct concepts." I think anonymous functions in PHP without the "use()" part should not be called closures.

« previous php.notes (#164995) next »