(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
http://wiki.ecmascript.org/doku.php?id=strawman:block_vs_object_literal
as an option for ES7. Comments welcome.
/be
More information about the es-discuss
mailing list