(x) => {foo: bar}

Brendan Eich brendan at mozilla.org
Mon Jan 5 13:40:23 PST 2015

Mark Volkmann wrote:
> My apologies. I meant to say that Traceur doesn't support returning a 
> literal object from an arrow function with syntax like this:
> let f = x => ({foo: bar});
> However, I just tested it again and it works fine. I could swear this 
> didn't work a few months ago. Maybe it was fixed recently. I'm happy!

Cool -- you are supporting Caitlin's thesis that we can pedagogue around 
the footgun. I hope so.

Still leaves 
as an option for ES7. Comments welcome.


More information about the es-discuss mailing list