Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
commandlinefan
on April 12, 2024
|
parent
|
context
|
favorite
| on:
If Inheritance is so bad, why does everyone use it...
I see that a lot - the alternative to inheritance, when inheritance does make sense, is code duplication, which is much worse than inheritance, or first-order functions, which many languages don't actually support or don't support efficiently.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: