Y
Hacker News
new
|
ask
|
show
|
jobs
by
pjmlp
4278 days ago
If you have control the code.
1 comments
wtetzner
4278 days ago
No, you can add new functions that switch over the different types without having control over the code. That way you don't have to add the same method to each of the classes.
It's a different dimension of extensibility.
link
It's a different dimension of extensibility.