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.
http://www.spket.com<https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.spket.com&data=01%7c01%7cbrian.terlson%40microsoft.com%7caaf2ba249b3a4273d38108d2d9e91b11%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=82rotBtjB4LpzYuIgNnwd9OGHbkM%2b%2fJoLf5oPCFj72o%3d>
-------------- 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