Hacker News new | ask | show | jobs
by wtetzner 4277 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.