9 ms·
> Classes are pretty nice. It's a syntax sugar which is nicer and easier to understand than using functions and prototypes. I actually think that this syntax s
by johnmaguire2013 11y ago
> Classes are pretty nice. It's a syntax sugar which is nicer and easier to understand than using functions and prototypes.
I actually think that this syntax sugar is the opposite of a solution. It has always been tricky getting developers coming in from other languages (mainly C-like, and Java-like) to understand that JS is NOT an object-oriented language, but in fact is a prototypal language.
By adding the class keyword, I think this only confuses those users further.
- paublyrne 11y agoIt has always been tricky getting developers coming in from other languages (mainly C-like, and Java-like) to understand that JS is NOT an object-oriented language, but in fact is a prototypal language. It's both.