I like how the current syntax forces you to define what your importing right
next to the function signature. It's easy to waste time debugging if your
assumptions about what's being imported into scope are wrong.


Erik Schulz - gradbot @ gmail, yahoo, aim
Software Engineer, Vulcan Inc.


On Wed, Jan 7, 2009 at 4:57 AM, Dmitry Stogov <dmi...@zend.com> wrote:

> 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
>>
>>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Reply via email to