Shorter syntax for arrow function assignment

Brian Blakely anewpage.media at gmail.com
Tue Oct 24 20:12:10 UTC 2017


To be clear, this isn't a proposal to drop support for something.  Don't
optimize for a fading use-case, however.

>it doesn't seem to add anything other than "I don't like typing '='".

That is absolutely correct, it is a proposal for shorthand syntax.


On Tue, Oct 24, 2017 at 4:08 PM, dante federici <c.dante.federici at gmail.com>
wrote:

> The use case fading away doesn't mean you can drop support for it, or that
> it won't still be in use.
>
> Please stop trying to push your "shorthand" syntax of:
> ```
> myFn() {
> }
> ```
>
> It's already been pointed out in multiple cases that:
> 1. The current usages are not "outmoded"
> 2. The proposed syntax has misleading `this` binding without the arrow
> 3. Blocks, ASI, and the object shorthand notation either conflict or make
> it vague how to interpret
>
> This isn't a beneficial syntax moving forward, and it doesn't seem to add
> anything other than "I don't like typing '='".
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20171024/b5329003/attachment.html>


More information about the es-discuss mailing list