On Mar 6, 2012, at 12:37 PM, Brendan Eich wrote:

> Isaac Schlueter wrote:
> 
>> Certainly, this is quite nice:
>> 
>>     myList.forEach((item) { .. })
> 
> Less nice for map because of the hated six-letter keyword, but yeah.

What if the anonymous form didn't require `return`, i.e., used the body's 
completion value?

    myList.map((x) { x + 1 })

(Whether the body is TCP-respecting or not is an orthogonal question.)

Dave

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

Reply via email to