arrow function syntax simplified
Brendan Eich
brendan at mozilla.com
Wed Mar 28 19:35:48 PDT 2012
That's the plan.
/be
Kevin Smith wrote:
> If the consensus is that two arrows are too confusing, and we must
> choose to prefer either object literal or blocks, then the code I
> sampled suggests that object literals as expression bodies are rather
> uncommon (only 16 out of 5705 BTF candidates, or 0.2%).
>
> // Not so bad...
> x => ({ a: 123 });
>
> kevin
>
More information about the es-discuss
mailing list