On Fri, Jul 26, 2013 at 10:50 AM, Domenic Denicola <
domenic at domenicdenicola.com> 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'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130726/348269e8/attachment.html>
domenic at domenicdenicola.com (2013-07-26T21:12:23.306Z)
A useless parameter is an option:
```js
_=> 'foo'
```