News for hackers. Stuff that matters.
Re:Go 2, here we come by gameswithgo on Friday November 30, 2018 @07:19AM (#18568545)
>"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#)

There are no comments on this comment yet.