Why is no line break is needed in ArrowFunction?

Brian Terlson Brian.Terlson at microsoft.com
Wed Oct 21 20:39:03 UTC 2015

Sure, this works for syntax questions.

Today no expression can start with =>, but there is the headless arrows proposal[1] which might add one. IIRC we wanted to be future compatible.

I’m not sure what the motivation for [no LT here] in yield * was, but I support it on the grounds that splitting yield and * across lines is bad :-P In general better to be more conservative than less, I suppose.

1. https://bterlson.github.io/headless-arrows

From: es-discuss [mailto:es-discuss-bounces at mozilla.org] On Behalf Of Eric Suen
Sent: Wednesday, October 21, 2015 12:28 AM
To: es-discuss at mozilla.org
Subject: Why is no line break is needed in ArrowFunction?

Try to write a parser for es6, is this the right place for question about syntax?

There is no expression or statement start with =>, same goes to yield  [no LineTerminator here] * AssignmentExpression ?

Spket IDE - Development Tool for RIA.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20151021/5eb86c50/attachment.html>

More information about the es-discuss mailing list