Re: [PATCH] [RFC] Closures and lambda functions in PHP
| From: | troels knak-nielsen | Date: | Thu, 19 Jun 2008 15:21:07 +0000 |
| Subject: | Re: [PATCH] [RFC] Closures and lambda functions in PHP | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-38409@lists.php.net to get a copy of this message | ||
On Thu, Jun 19, 2008 at 4:37 PM, Dmitry Stogov <dmitry@zend.com> wrote:
> I don't like "lexical" keyword, because it can be used anywhere in function
> (e.q. inside "if" or loop statement), however lexical variables must be the
That does sound wtf-y, indeed. Is that allowed with the global
keyword? Even if it is, I think it would be a sane limitation to put
on lexical, that it must come at the beginning of a function body
(Perhaps allowing global and static to precede it).
--
troels