const VS features detection

Brendan Eich brendan at
Fri Jan 10 17:33:56 PST 2014

Kevin Smith wrote:
>     We should adapt Crock's recommended paren style to arrow IIFEs, to
>     whit (()=>{...whatever...}()), even though this looses a bit more
>     brevity.
> I believe this is required by the grammar anyway.

No, what is required is

   (() => {...whatever...})()

Arrow function expressions are an AssignmentExpression.


More information about the es-discuss mailing list