>> 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
[email protected]
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss