On Thu, Sep 16, 2010 at 10:35 PM, Stas Malyshev <smalys...@sugarcrm.com> wrote:
> Hi!
>
>> const foo = function () use ($globalVar) {
>>
>> };
>
> How would you call this thing? foo()? Then you have a problem - foo()
> already has meaning, and it's "call function named foo", not "get constant
> named foo and call function inside if it's there".

His idea is, that "get constant named foo and call function inside if
it's there" should be the only meaning
and "function foo() {}" should be syntactic sugar for defining
constant foo with closure inside.

-- 
Alexey Zakhlestin
http://www.milkfarmsoft.com/

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to