Re: [PATCH] [RFC] Closures and lambda functions in PHP
| From: | Alexey Zakhlestin | Date: | Fri, 20 Jun 2008 13:05:11 +0000 |
| Subject: | Re: [PATCH] [RFC] Closures and lambda functions in PHP | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-38460@lists.php.net to get a copy of this message | ||
On 6/20/08, Dmitry Stogov <dmitry@zend.com> wrote:
> 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.
just to clarify:
php, currently, does not have "nested functions"
but it is allowed to declare "usual", global-scoped functions from
inside other functions
--
Alexey Zakhlestin
http://blog.milkfarmsoft.com/