2 ms·
If you don't have parametric polymorphism, you only have two options to implement new containers: a new implementation for each type or using interface{}. The f
by danieldk 13y ago
If you don't have parametric polymorphism, you only have two options to implement new containers: a new implementation for each type or using interface{}. The first leads to a lot of duplicate code, the latter requires you to use introspection to use safely.
So, it does happen a lot, or you are making duplicate code.
- NateDad 13y agoOr you just don't need polymorphic containers that often (other than the ones that go already gives you).