3 ms·
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 m
by NateDad 12y ago
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.
- 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.