HN2new | past | comments | ask | show | jobs | submitlogin

Prototype inheritance is fairly hard to reason about and fairly verbose to set up correctly. And if we aren't supposed to avoid inheritance that applies equally to prototype inheritance as well. Prototype inheritance allows even crazier inheritance situations.

I don't think it's reasonable to eliminate inheritance (it's very useful when it's needed) but restricting it down from what Javascript currently provides natively is a good thing.



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

Search: