Make comma at the end of line optional

Isiah Meadows isiahmeadows at gmail.com
Wed Sep 13 18:51:28 UTC 2017


What about...

- variable (var)

- donuts (do)

- forest (for)

- awaiter (await, module-specific)

- async (https://github.com/caolan/async)

- className (class)

- letters (let)

- constants (const)

Fun fact: all of these are valid, and many of them are relatively common.
Please consider the ramifications of such a feature before proposing them.
On Wed, Sep 13, 2017, 14:22 Bob Myers <rtm at gol.com> wrote:

> Personally, I am annoyed by the extra typing required for spaces.
> I propose that we have a new kind of ASI: *automatic SPACE insertion.*
>
> For instance, you could then write
>
> ```js
>     functionfoobar(){return42;}
> ```js
>
>
>
>
> On Wed, Sep 13, 2017 at 11:25 PM, Naveen Chawla <naveen.chwl at gmail.com>
> wrote:
>
>> `x` <whitespace> `[y]` would be invalid syntax, right?
>> So
>> ```js
>> x
>> [y]
>> ```
>> would automatically insert a comma in the case of a function call
>> arguments list, right?
>>
> _______________________________________________
> 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/20170913/5e9b3b07/attachment.html>


More information about the es-discuss mailing list