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

Inheritance is not necessary for code reuse.

All you really need for that is named procedures. A way to combine modules and different files certainly helps too.

Type hierarchies can even hinder code reuse, because you can’t just pick the stuff you actually need.



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

Search: