Re: [PHP-DEV] [RFC] Allow "use( $longname as $alias)" syntax for closures declaration

2012-04-13 Thread Verbitsky Alexander
On 04/13/2012 11:36 AM, Stas Malyshev wrote: Hi! I'm at a bit of a loss as to why Laruence is claiming that allowing closures to implicitly access variables in the outer scope requires duplicating the symbol table. Because variables need to be stored somewhere after the parent function exits.

Re: [PHP-DEV] [RFC] Allow "use( $longname as $alias)" syntax for closures declaration

2012-04-13 Thread Verbitsky Alexander
On 04/12/2012 06:38 PM, Laruence wrote: Hi: I have made a RFC to allow user use T_AS in the closure declaration, like: function () use($long as $l,&$long as $r) { } here is the RFC: https://wiki.php.net/rfc/useas any ideas? thanks Closure is a functional literal