4 ms·
> Go's lack of generics isn't buying the language anything from an implementation standpoint. But it does buy us a lot from a code complexity standpoint. C++ t
by enneff 15y ago
> Go's lack of generics isn't buying the language anything from an implementation standpoint.
But it does buy us a lot from a code complexity standpoint. C++ templates and Java's generics have a horrific effect on readability and comprehensibility, two of Go's primary goals. Generics are hard. If/when we do them, we'll get them right.
- ootachi 15y agoI don't think Java's generics have a "horrific" effect on readability and comprehensibility, except for the fact that they have use-site variance instead of definition-site variance. (The ? existential type is kind of screwy too.) But neither of us are going to be convinced otherwise.
- enneff 15y agoHorrific may be hyperbole, but I have seen many an incomprehensible parameterized Java type definition.
- deleted 15y ago[deleted]