Protocol extension, generics and dynamic dispatch confusion

This came up recently:

Just like in Java and C++, you need to use the "double dispatch" pattern to accomplish this sort of thing: Double dispatch - Wikipedia

2 Likes