tc39 / proposal-class-fields

Orthogonally-informed combination of public and private fields proposals
https://arai-a.github.io/ecma262-compare/?pr=1668
1.72k stars 113 forks source link

Didn't like # for private fields #259

Closed newmangreen closed 5 years ago

newmangreen commented 5 years ago

Private fields would be precious addition for JS. Leaving spec details to veterans, I didn't like # prefix for private fields. I suggest a keyword(why not "private") instead of prefix. IMO, prefix does not fit well for this task.

bakkot commented 5 years ago

See the FAQ.

newmangreen commented 5 years ago

Thank you for FAQ, satifying explanation. I'd rather prefer "" but it is not accepted for this reason(Maybe some mode can be added like "use strict" directive): "We can't just change how works for web compatibility reasons."