(x) => {foo: bar}

Kevin Smith zenparsing at gmail.com
Mon Jan 5 12:03:39 PST 2015

> I think hacking around this would not get rid of the footgun, but would
> just make it more complicated to understand the footgun, personally.

My gut reaction is to agree - the current rule, while it takes some trivial
learning, is easy to understand and communicate and is reflected well in
other parts of the language.  Also, additions to object literal syntax
might make this more...weird:

   x => { [abc](def = function() { huh() }) { blahblahblah } };

"But it's an object literal, obviously!"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150105/c4c5c0de/attachment.html>

More information about the es-discuss mailing list