Make comma at the end of line optional

Jordan Harband ljharb at gmail.com
Tue Sep 12 16:54:58 UTC 2017


Punctuation isn't noise.

On Tue, Sep 12, 2017 at 9:51 AM, dante federici <c.dante.federici at gmail.com>
wrote:

> I think the only place I see as a current inconsistency is with class
> definitions vs object definitions. It probably should have been looped into
> the object shorthand definition:
>
> https://github.com/tc39/proposal-class-fields
> ```js
> class MyClass {
>   prop = 123
>   constructor() {}
>   method() {}
> }
> ```
> vs
> ```js
> const myObj = {
>   prop: 123,
>   constructor(){},
>   method(){},
> };
> ```
>
> Also, to wit on the class-fields proposal and this issue:
> https://github.com/tc39/proposal-class-fields/issues/7
>
> _______________________________________________
> 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/20170912/f6e132c6/attachment.html>


More information about the es-discuss mailing list