News for hackers. Stuff that matters.
Re:New ES2019 JavaScript features by orangecat on Thursday September 26, 2019 @08:01PM (#21087030)
I would rather work in a language/style that draws its inspiration from Scheme than Simula 67.

Then you should push for WebAssembly improvements so you can use whatever language you want. As long as JavaScript is a de facto requirement for web development it needs to be as approachable as possible to a wide developer audience, and that means looking more like Java than Lisp.

Re:New ES2019 JavaScript features by BigJono on Thursday September 26, 2019 @08:20PM (#21087165)
Or we could've considered it an opportunity to move people away from classical inheritance and towards something that's conceptually much simpler? (which both prototypal inheritance and functional programming are)
Re:New ES2019 JavaScript features by pjmlp on Friday September 27, 2019 @02:38AM (#21089084)
Yet all successful functional programming languages do support doing OOP as well.
Re:New ES2019 JavaScript features by boomlinde on Friday September 27, 2019 @05:03AM (#21089862)
JS is and always was prototype based. The class keyword is as far as I know just syntax sugar that creates a prototype chain and a new-able function that assigns the prototype to self.
Re:New ES2019 JavaScript features by jwalton on Friday September 27, 2019 @07:26AM (#21090668)
The '#privateVar' syntax means that classes are no longer simply syntax sugar, unfortunately.
Re:New ES2019 JavaScript features by eropple on Friday September 27, 2019 @09:49AM (#21091928)
Private variables could always be simulated with IIFEs. I'm pretty sure that's actually how TypeScript does it if you compile down low enough.
Re:New ES2019 JavaScript features by jcadam on Thursday September 26, 2019 @08:44PM (#21087343)
> and that means looking more like Java than Lisp.

No.

(No (No (No (No (No)))))