Semantics and abstract syntax of lambdas

Brendan Eich brendan at mozilla.com
Thu Dec 18 08:43:31 PST 2008


On Dec 18, 2008, at 6:45 AM, Lex Spoon wrote:

> x => x+1
> x => {{ var y = x+1; y*2 }}

There's no need to double braces in the => syntax if we require an  
object initialiser to be parenthesized:

x => ({p: 1, q: true})

/be


More information about the Es-discuss mailing list