3 ms·
Go has a very nice standard library. The whole thing is reusable code.
by NateDad 12y ago
Go has a very nice standard library. The whole thing is reusable code.
- falcolas 12y agoNot 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.
- NateDad 12y agoThe 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.
- theseoafs 12y agoGo'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.
- NateDad 12y agoBuilt ins are not the same as the standard library. The standard library consists of packages written in normal go for things like networking, web servers, JSON, regular expressions, etc.