News for hackers. Stuff that matters.
Re:ES6 Classes by runarberg on Sunday January 06, 2019 @02:37PM (#18840101)
From MDN[1]:

> JavaScript classes, introduced in ECMAScript 2015, are primarily syntactical sugar over JavaScript's existing prototype-based inheritance. The class syntax does not introduce a new object-oriented inheritance model to JavaScript.

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

Re:ES6 Classes by runarberg on Sunday January 06, 2019 @02:42PM (#18840132)
Do note though that there is a lot of syntax that is hidden with the `class` keyword. So even though it is primarily a syntactic sugar, it is by no means trivial.
Re:ES6 Classes by ronilan on Sunday January 06, 2019 @03:01PM (#18840246)
Calling something “syntactical sugar” makes it sound unhealthy.

I found the ES6 classes to be very helpful in conceptualizing stuff. When I started playing with them I’ve built myself a demo https://codepen.io/ronilan/pen/PObzew as a clone of same done previously in Ruby. Then I found classes to be very useful for bigger “vanilla” projects (https://github.com/ronilan/BlockLike)

I’d call them “syntactical vitamins”.

Re:ES6 Classes by krapp on Monday January 07, 2019 @06:48AM (#18844456)
> Calling something “syntactical sugar” makes it sound unhealthy.

I would argue that, more often than not, it is, and it becomes less healthy the more of it you have.

Javascript, for all its faults, is syntactically a simple language and it should have been kept that way.

Re:ES6 Classes by labster on Sunday January 06, 2019 @04:07PM (#18840711)
There's no alliteration there. I'd go with syntactic soylent.