Nannying (was: Array comprehension syntax)

Rick Waldron waldron.rick at
Mon Sep 24 12:20:30 PDT 2012

On Mon, Sep 24, 2012 at 1:37 PM, Jason Orendorff
<jason.orendorff at>wrote:

> snip
> Here's another program I think we should reject, for the same reason:
>     var titles = => {title: b.title});

Per the proposal, this is already illegal, otherwise requiring parens
around the object literal. The example given in the proposal is:

// Parenthesize the body to return an object literal expression
let key_maker = val => ({key: val});


> snip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list