Re: [RFC] Allow "use( $longname as $alias)" syntax for closures declaration
| From: | Yasuo Ohgaki | Date: | Fri, 13 Apr 2012 08:30:29 +0000 |
| Subject: | Re: [RFC] Allow "use( $longname as $alias)" syntax for closures declaration | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-59862@lists.php.net to get a copy of this message | ||
2012/4/13 Yasuo Ohgaki <yohgaki@ohgaki.net>:
>
> I would rather have this.
> function FUNC($a, $b, $c) uses ($d, $e, $f) {}
> Then it would be consistent with anonymous function.
Oops.
It became consistent, but there would be no use
with PHP. As it cannot pollute global vars.
--
Yasuo Ohgaki
yohgaki@ohgaki.net