Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> the misfeature of prototypal inheretance

Prototypal inheritance isn't a misfeature, it's an interesting and powerful language design choice used by several different languages [1]

It may not be your cup of tea, but having written code in most mainstream languages since the 80's, I can tell you I definitely prefer it to alternatives like class based inheritance.

Runtime mixins are one of the most powerful composable concepts in any language, and this is a breeze with js. Take a look at the hoops c# had to jump through to come up with something similar but less powerful, as an example. Or the nightmare of multiple inheritance in C++.

[1] https://en.m.wikipedia.org/wiki/Prototype-based_programming



Something is wrong in this thread. People have misquoted me, twice. In this case you cut out "(arguably)" implying my position is stronger than it is. Elsewhere, they cut out the conditional in my endorsement of the jvm, implying my statement was absolute, and proceeded to lecture me on trade-offs.

Not sure what it is, but I don't like it and won't participate.


Well, you saw my personal opinion about why I prefer Javascript and proceeded to lecture me about things that you think are better. ;)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: