Re:Go's power is in emergent behavior
by NateDad on Sunday April 27, 2014 @07:44AM
(#7654744)
No, it really doesn't happen a lot. If it does, you're doing it wrong.
[ Parent
| on HN ]
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.