-1 as far as i'm concerned, const is a wart with surprising behavior that should have never been introduced. best leave the wart as is rather than add more surprises. On Jul 8, 2017 3:09 PM, "Raul-Sebastian Mihăilă" <raul.miha...@gmail.com> wrote:
> I'd like to propose the following syntax: > > ```js > const obj = { > x:| 3, // non-writable property with value 3 > y:] 4, // non-configurable property with value 4 > z:} 5 // non-writable non-configurable property with value 5 > }; > ``` > > Perhaps class fields could also use this syntax. Maybe decorators can take > care of this but should you really need to use a decorator for something so > basic? > > _______________________________________________ > es-discuss mailing list > es-discuss@mozilla.org > https://mail.mozilla.org/listinfo/es-discuss > >
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss