Re: [RFC] Closures, Lambdas and use
| From: | Dmitry Stogov | Date: | Wed, 07 Jan 2009 12:57:03 +0000 |
| Subject: | Re: [RFC] Closures, Lambdas and use | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-42529@lists.php.net to get a copy of this message | ||
Personally I like the current syntax more and don't see any reason to change it.
Thanks. Dmitry.
Marcus Boerger wrote:
Hello Internals, Dmitry, Lukas, Johannes, some time back (August 08) I complained about 'use' being at a weird position and not at the same place as 'global' or 'static' where I expected it. Back then Dmitry asked me to provide a patch to check out the alternative. Now during the holidys I finally found some time to change from:$f = function() use ($x) {}to:$f = function() { use $x; }Patch is attached. Comments? Best regards, Marcus