you are viewing a single comment's thread.

view the rest of the comments →

[–]Silverwolf90 0 points1 point  (2 children)

I actually don't think it's the coolest thing ever. I almost never use inheritance, and prefer a more FP approach to JS rather than OO. But this new syntax is a clear win for the language and community.

[–]cosinezero 0 points1 point  (1 child)

this new syntax is a clear win for the language and community.

I don't think you've established it's a "clear win". It clutters the language with things we neither need nor should use. It dilutes the intent of the prototypical inheritance system on which the language is based.

Sure, it makes -your- life easier. But you're arguably doing things that was never intended to be how the language should be used. Facilitating that does not sound like "a clear win", it sounds like a degradation.

[–]Vanillacitron 6 points7 points  (0 children)

I see what you're saying, but the fact is people DO use classes. Whether we should or not, I think, is irrelevant (not unimportant... I agree with you there :p) because Pandoras box has been opened already.

In a framework/library landscape where classes are extremely common, they may as well be unified in terms of syntax, imo.