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

For what it’s worth, this exact pattern is essentially entirely what’s implied by “composition over inheritance”.

Nice to have a concise example written down though.



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

Search: