(x) => {foo: bar}

Gary Guo nbdd0121 at hotmail.com
Mon Jan 5 19:37:15 PST 2015

Strongly negative against the proposal. I believe that charisma of a language comes from its simplicity. The proposal seems to add too many syntax rules to ES.
btw it is not easy to implement such a syntax into practice. I'm afraid there will be more syntax refinement, which actually make the parser to scan source code twice (or adjust the AST afterward, but currently traceur reparse the code when refine the destructuring assignment). I don't feel it worthwhile.

Though I am strongly negative, but there actually is such an implementation. The REPL of node will parse {a:1} as object literal while {a:1;} as block. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150106/5bee2ea2/attachment.html>

More information about the es-discuss mailing list