Re: [PATCH] [RFC] Closures and lambda functions in PHP
| From: | Alexey Zakhlestin | Date: | Wed, 18 Jun 2008 19:59:48 +0000 |
| Subject: | Re: [PATCH] [RFC] Closures and lambda functions in PHP | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-38362@lists.php.net to get a copy of this message | ||
On 6/18/08, Stanislav Malyshev <stas@zend.com> wrote:
> Which brings me to another point - how bad would it be if closure's
> lifetime would be limited to parent's lifetime? Of course, this would limit
> some tricks, but would allow some other - like this direct access to
> parent's scope.
that would be seriously bad, because it will eliminate possibility of
lambda-generating functions
--
Alexey Zakhlestin
http://blog.milkfarmsoft.com/