On Mar 6, 2012, at 2:56 PM, Brendan Eich wrote:

> David Herman wrote:
> 
>> Moreover, if you wanted to do some control along with an expression, you 
>> could use do-expressions:
>> 
>>     myList.map((x) do { for (...) { ... } f(x) })
>> 
>> Note that combination (expression closures + do-expressions) brings back the 
>> exact same expressiveness of block-lambda.
> 
> Not so, because no TCP. Only block-lambdas preserve TCP fully.

Says you! :)

To be clear: what I'm suggesting is that expression closures would *not* be 
syntactic sugar for statement bodies, but rather would be TCP-respecting. Most 
of the time this wouldn't even be noticeable, until you use do-expressions.

Dave

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to