Re:A Homepage for the JavaScript Specification
by nivexous on Tuesday March 19, 2019 @11:09AM
(#19431493)
The new syntax for #private vars is truly terrible and the arguments for it are not compelling enough - some flavor of soft private would be OK. Please, if anyone from TC39 is reading, take the criticism seriously.
[ Parent
| on HN ]
Re:A Homepage for the JavaScript Specification
by andyfleming on Tuesday March 19, 2019 @12:51PM
(#19432637)
Wow. I had not seen that and I can't say that I'm a fan. I hope this doesn't end up in the language this way.
Re:A Homepage for the JavaScript Specification
by pitaj on Tuesday March 19, 2019 @01:38PM
(#19433237)
Plenty of people have brought up the "looks ugly/terrible/dumb" criticism and they seem to be sticking with the "total private encapsulation" proposal.
Personally I don't have a problem with it, since Typescript offers "soft" access modifiers that work fine for any use cases I can think of.