tc39 / proposal-private-methods

Private methods and getter/setters for ES6 classes
https://arai-a.github.io/ecma262-compare/?pr=1668
345 stars 37 forks source link

How syntax consensus has been formed over private elements? #74

Closed koteisaev closed 5 years ago

koteisaev commented 5 years ago

I see that the # syntax is come to phase 3. I want to get a general understanding of this quite unusual decision of syntax, especially since there is a common tradition across languages about this, by using private keyword. JS has a long-term practice which supported by many IDEs to support _name format and treat these fields as sort of prvate and do not suggest them in code completion outside of logical scope visiblity.

What caused to peek the special, "shebang-like" syntax?

slikts commented 5 years ago

FAQ.