23 ms·
>"Oh, I need a vector of maps from a pair of Foo to a set of Bar" This is a fun example since you can do that in Go now, as it comes with a generic vector (ess
by gameswithgo 8y ago
>"Oh, I need a vector of maps from a pair of Foo to a set of Bar"
This is a fun example since you can do that in Go now, as it comes with a generic vector (essentially) and map :D
I think that was the design decision, 95% of generics use cases are covered by having growable arrays and maps, so why clutter the language with generics.
I like generics, I think most people who dislike them are coming from C++ templates, which has downsides that don't exist in newer generics systems (such as in C# or F#)