3 ms·
If you really want to program classical inheritance into Javascript, there are ways to do that today. Meanwhile, prototypal inheritance is already simple and po
by RyanMcGreal 15y ago
If you really want to program classical inheritance into Javascript, there are ways to do that today. Meanwhile, prototypal inheritance is already simple and powerful - so simple, perhaps, that programmers trained in classical inheritance tend to stumble on it.
- judofyr 15y agoI agree that prototypal inheritance is simple and powerful; JavaScript's version of it on the other hand… By introducing constructors you get this weird mix between classical and prototypical which isn't elegant at all :(