Re: [PATCH] [RFC] Closures and lambda functions in PHP
| From: | Dmitry Stogov | Date: | Fri, 20 Jun 2008 12:52:38 +0000 |
| Subject: | Re: [PATCH] [RFC] Closures and lambda functions in PHP | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-38459@lists.php.net to get a copy of this message | ||
It is possible to do it, but I don't see any reason to invest time into
it. PHP scripts hardly ever use nested functions, and you always can
access global variables through "global" or $GLOBALS. I don't see, why
do we need another way to do the same.
Thanks. Dmitry.
Lars Strojny wrote:
> Hi Dmitry,
>
> Am Freitag, den 20.06.2008, 16:19 +0400 schrieb Dmitry Stogov:
>> No it won't.
>
> While I don't want to use it, it might be really confusing to our users
> that it works different to closures (because the declaration of
> functions and closures looks similar). Are there any internal
> limitations why not to do it?
>
> cu, Lars