note 95673 added to functions.anonymous

From: Date: Fri, 15 Jan 2010 07:36:07 +0000
Subject: note 95673 added to functions.anonymous
Groups: php.notes 
Request: Send a blank email to php-notes+get-164988@lists.php.net to get a copy of this message
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. ---- Server IP: 59.188.18.107 Probable Submitter: 219.77.55.198 ---- Manual Page -- http://www.php.net/manual/en/functions.anonymous.php Edit -- https://master.php.net/note/edit/95673 Del: integrated -- https://master.php.net/note/delete/95673/integrated Del: useless -- https://master.php.net/note/delete/95673/useless Del: bad code -- https://master.php.net/note/delete/95673/bad+code Del: spam -- https://master.php.net/note/delete/95673/spam Del: non-english -- https://master.php.net/note/delete/95673/non-english Del: in docs -- https://master.php.net/note/delete/95673/in+docs Del: other reasons-- https://master.php.net/note/delete/95673 Reject -- https://master.php.net/note/reject/95673 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#164988) next »