News for hackers. Stuff that matters.
Re:TypeScript 4.7 by nikolay on Wednesday May 25, 2022 @04:53AM (#31502009)
You are right [0]! I haven't really used any of these in the past years. Whoever came up with that should be banned from language design for life! Every language becomes Java given sufficient time - just like every data format becomes XML.

[0] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

Re:TypeScript 4.7 by amitport on Wednesday May 25, 2022 @05:03AM (#31502073)
You seem to have a general problem with the object oriented approach. As JavaScript is a general purpose + general audience language it tries to have minimal support for common paradigms (both fp and oo). That's fine IMO. Private props are fine. They are easy enough to learn and do not really get in your way in JS.
Re:TypeScript 4.7 by nikolay on Wednesday May 25, 2022 @12:25PM (#31506734)
Not really - I've done OOP before it was cool (yeah, I'm old). But to use "#" for private properties - it's beyond fugly and not semantical [0].

[0]: https://en.wikipedia.org/wiki/Number_sign