3 ms·
Huh, they just took all the issues with inheritance and made them more confusing! There is nothing addressed here that can't be solved with composition. This s
by throwaway427 8y ago
Huh, they just took all the issues with inheritance and made them more confusing!
There is nothing addressed here that can't be solved with composition. This seems like an odd step for an aspiring functional language to take...
- Klathmon 8y agoBut JS isn't aspiring to be a functional language, it's adding new syntax and changing itself to better solve the problems that it is currently being used to solve. Some of that is pushing it in a functional direction, some in a "classic OOP" direction. Much like classes in the first place, this is a feature added to the language to stop the proliferation of stop-gap solutions and standardize on one implementation for most. Sure, I won't be using this feature, just like I won't be using classes at all in most cases (React components being one exception), but many will, and if this isn't added, they will continue trying to solve problems with solutions which are more complicated, slower, and buggier than this. All the talk about how it's not the "right" solution doesn't matter. To use an over-the-top metaphor: People are jumping out of planes, and you aren't going to stop them, so the very least you can do is give them a well tested parachute and a map of where to safely land.