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

> You get about as much reuse from a set of re-usable functions as you get from inheriting implementations.

There's far more to inheritance that code reuse. For example, encapsulation, access control, and static type checking, etc.



Encapsulation/access control and static type checking are great features, but you can have them without implementation inheritance.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: