Block lambda is cool, its syntax isn't
Jorge
jorge at jorgechamorro.com
Fri Jan 20 01:22:01 PST 2012
On 19/01/2012, at 22:14, Axel Rauschmayer wrote:
>
> Suggestion: a community-edited page where we collect the rejected syntaxes (=> less running in circles) – simply copying emails (such as yours below) there would probably suffice.
Has a backtick/accent grave ever been considered and/or rejected ?
Anonymous function expression:
setTimeout( '(){ ... }, 1e3);
Named function expression:
setTimeout( 'name(){ ... }, 1e3);
Declarations:
`(){ ... } // error: can't declare anonymous functions
`name(){ ... }
--
Jorge.
More information about the es-discuss
mailing list