2 ms·
> Was it really necessary to add "class" syntactic sugar? Necessary? No. But look around at Javascript projects, and see how many "reinventions" of simple inhe
by vidarh 12y ago
> Was it really necessary to add "class" syntactic sugar?
Necessary? No. But look around at Javascript projects, and see how many "reinventions" of simple inheritance you see. Often poorly done and/or buggy. Even more often they're hopelessly inconsistent.
What a lot of the ES6 changes does is codify ways of doing what "everyone" has been doing in mutually inconsistent ways.