8 ms·
With templates/generics, polymorphic in return type is no problem. Consider Java Guava's Lists.<String>newArrayList()
by Evbn 14y ago
With templates/generics, polymorphic in return type is no problem. Consider Java Guava's
Lists.<String>newArrayList()
- ufo 14y agoSure, but its kind of hackish and many people don't know about it. It also doesn't really apply to dynamic languages like Python :(