4 ms·
so 84% don't want generics, right? :) I switched to Go from Python several years ago, I admit that I missed generics for the first several weeks but then just m
by deforciant 10y ago
so 84% don't want generics, right? :) I switched to Go from Python several years ago, I admit that I missed generics for the first several weeks but then just moved forward. Nowadays I don't really think I actually need them anymore.
- coldtea 10y agoWell, 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).