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

Jeff Dyer jodyer at adobe.com
Mon Mar 19 13:50:53 PDT 2007


> * make 'function' required for declarations, optional for
> expressions, require '=>' for both
> 
> ('function' identifier?)? '(' formals? ')' '=>' expression

The '=>' is unnecessary and breaks symmetry with function expressions
with statement bodies. So I don't like it.




More information about the Es4-discuss mailing list