On Fri, Jul 26, 2013 at 10:50 AM, Domenic Denicola <
[email protected]> wrote:
> Why do arrow functions require a parameter list and a body? That is, none
> of the following are allowed:
>
> - `=> foo`
> - `bar =>`
> - `=>`
>
> Instead you need the more-verbose
>
> - `() => foo`
> - `bar => {}`
> - `() => {}`
>
> Any chance of relaxing this a bit?
>
A useless parameter is an option:
_=> 'foo'
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss