Hacker News new | ask | show | jobs
by nivexous 2655 days ago
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.
2 comments

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.
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.