Re: Anonymous functions is equal to lambda not closure
| From: | Hannes Magnusson | Date: | Tue, 23 Feb 2010 12:44:04 +0000 |
| Subject: | Re: Anonymous functions is equal to lambda not closure | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969381348@lists.php.net to get a copy of this message | ||
On Tue, Feb 23, 2010 at 13:07, Keryx Web <webmaster@keryx.se> wrote:
> Hello
>
> Re this page:
> http://php.net/manual/en/functions.anonymous.php
>
> Outside the world of PHP nobody seem to be using the word closure as if it
> was a synonym to anonymous function.
[...]
> I think that the PHP community perhaps calls anonymous functions closures
> because it is one word less to say and type, and we might need a single word
> term to use.
Closures (as described on that page) in PHP are actually closures.
We already have lambda functions..
> Therefore I'd suggest a rewrite of the manual page.
I think the better way to simply rename the chapter from 'anonymous
functions' to 'closures' - but then we risk people that dont know what
a closure is will never click it.
A *lot* of people that use PHP have no idea what 'closure' is, but a
'anonymous function' sounds interesting to them, hence getting them to
click it and discover closures.
-Hannes