2 ms·
Well, it's not like you had them in Python anyway, so there was not much to miss.
by coldtea 10y ago
Well, it's not like you had them in Python anyway, so there was not much to miss.
- dragonwriter 10y agoGenerics are a mechanism by which a statically-typed language can approach the generality of abstraction possible in a dynamically typed language while preserving static type safety, so even though Python doesn't have generics, one absolutely would have good cause to miss them going from Python to Go.
- coldtea 10y ago>so even though Python doesn't have generics, one absolutely would have good cause to miss them going from Python to Go. Not really, since you can always just use interface{} for everything and get all the dynamism back. Generics is when you want to have both (dynamism and safety).