4 ms·
Sad to throw away the brilliance of prototypes to go back to single-inheritance classes. uck
by nfoz 13y ago
Sad to throw away the brilliance of prototypes to go back to single-inheritance classes. uck
- taylodl 13y agoMy thoughts exactly. Dart is representative of 90's language design and as such is a step backward. That's not to say JS doesn't have its issues, but Dart isn't the solution.
- mraleph 13y agoJS prototypes provide a single parent lookup delegation, which is not that different from single inheritance and is mostly used to emulate single inheritance class systems in the wild. Furthermore Dart supports mixins, so it's not exactly single inheritance classes.
- voyou 13y agoCould you explain the brilliance of prototypes? Prototypes in JavaScript are pretty awful, but I've never been sure if that's just the JavaScript implementation (for instance, the lack of a good way to clone an object makes using prototypes in JS more painful than it needs to be), or the concept of prototypes more generally.
- ionforce 13y agoHow are prototypes brilliant? I'm not familiar with them outside of JavaScript. Maybe you could provide some examples?