Re:Everyday hassles in Go
by NateDad on Tuesday December 30, 2014 @09:57AM
(#8814806)
Go has a very nice standard library. The whole thing is reusable code.
[ Parent
| on HN ]
Not every problem can be solved with the standard library. At some point you need a 3rd party library, which may require your modification to work with your data types.
The point is that everyone assumes you need generics to reuse code. And that's simply not true. For some very specific problems that can be true, but in many many cases it's not. My point is not that you never need anything outside the standard library, just that the standard library does a hell of a lot and it is by definition reusable.
Go's standard library uses generics a lot. In fact, Go's built-in datatypes are the only parts of the language that are allowed to use generics.