Expression closures - use-cases for shortcut lambda syntax (blocks)

Brendan Eich brendan at mozilla.org
Fri Mar 16 22:44:06 PDT 2007


On Mar 16, 2007, at 10:38 PM, Neil Mix wrote:

> On Mar 16, 2007, at 8:57 PM, Robert Sayre wrote:
>
>> Seems to me that "function(){" is a little more painful when nested.
>
> Great examples -- you've changed my mind about the \( syntax.  I
> would argue that the painfulness is a result of densely packed
> alternating/nested curlies and parens and has little to do with the
> function keyword.

Test that claim: show those Mochikit examples rewritten to use  
expression closures as proposed for ES4.

/be




More information about the Es4-discuss mailing list