>> IIRC: Block lambdas.
>> 
>> var C = {||   // note the double pipe
>>    let something;
>> 
>>    // |this| is the global object
>>    // ...
>> 
>>    return something;
>> }
>> 
> 
> This contradicts TCP though. E.g. Ruby supports it and there we can't 
> `return` from blocks, since block wrapping should not be treated as a 
> function.

True. My bad. It should work if the return is removed.

Related to the discussion: 
http://wiki.ecmascript.org/doku.php?id=harmony:completion_reform

-- 
Dr. Axel Rauschmayer
a...@rauschma.de

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com



_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to