News for hackers. Stuff that matters.
Re:What's New in JavaScript for 2019 by sjroot on Tuesday January 22, 2019 @03:45PM (#18972266)
The only thing that still blows my mind are the private fields and methods. I understand there has been plenty of debate about it, but have not followed the conversation. I really hope that syntax does not get finalized.
Re:What's New in JavaScript for 2019 by reverentgeek on Tuesday January 22, 2019 @03:56PM (#18972377)
Yes. I've read some of the reasoning behind choosing the syntax. Regardless of the issues, I think going with the current proposed syntax is a terrible mistake.
Re:What's New in JavaScript for 2019 by pjmlp on Tuesday January 22, 2019 @04:08PM (#18972485)
Me too, in fact it is the only thing I dislike about the upcoming language features.
Re:What's New in JavaScript for 2019 by mirekrusin on Wednesday January 23, 2019 @03:29AM (#18976630)
Yes, absolutely alien/awful syntax. `private` is already reserved word, why not use it? It has been reserved word for this specific moment when it's needed for exactly this, am I wrong? What's the point in having reserved words in spec if the spec is afraid of using them? I don't get it, can someone explain why this ungodly # made it so far already?