RFE: Allow newline when returning an anonymous object

Brendan Eich brendan at mozilla.org
Wed May 28 11:42:33 PDT 2014

Oliver Hunt wrote:
> What you're asking for is grammatically ambiguous in a way that would 
> potentially break existing content, and (generally) leads to really 
> interesting parsing behaviour.

As Doug Crockford has argued, this is why K&R style is better in JS: 
always put the { at the end of the line whose first token starts the 

   if (C) {
     . . .

and not

   if (C)
     . . .

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140528/8141eefd/attachment.html>

More information about the es-discuss mailing list