Re:Go 1.3 is released
by personZ on Thursday June 19, 2014 @09:27AM
(#7915898)
Go "lists" are type dynamic -- "generics" in the most important place for generics to be.
[ Parent
| on HN ]
Re:Go 1.3 is released
by steveklabnik on Thursday June 19, 2014 @10:43AM
(#7916312)
Heterogeneous lists are not "generics."
A Go map is of the defintion map[KeyType]ValueType. A Go slice and dynamic array is similar typed. That isn't heterogeneous, it isn't of type object, and is 99% of the common use of generics.
Yeah, the native fundamental collections are generic.
Re:Go 1.3 is released
by steveklabnik on Thursday June 19, 2014 @11:23AM
(#7916570)
I have a feeling we're talking about different things: when people speak about Go generics, they mean that the language doesn't support parametric polymorphism. Yes, some of the built-in types are special. That's not the point.