Hacker News new | ask | show | jobs
by Silhouette 3264 days ago
Check this out http://blog.jonathanoliver.com/golang-has-generics/

I'm afraid that's not a well-informed article. The assumption that the main use case for generics is collections is very limiting, for example. That might have been one of the original motivations, but today generic types are widely used for countless data structures and algorithms, and even modelling entire patterns of computation in languages like Haskell. They let you prove a lot more useful properties than just not inadvertently trying to pull a foo out of a set of bars.