News for hackers. Stuff that matters.
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.
Re:Everyday hassles in Go by falcolas on Tuesday December 30, 2014 @10:32AM (#8814942)
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.
Re:Everyday hassles in Go by NateDad on Tuesday December 30, 2014 @11:30AM (#8815232)
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.
Re:Everyday hassles in Go by theseoafs on Tuesday December 30, 2014 @01:29PM (#8815880)
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.
Re:Everyday hassles in Go by NateDad on Tuesday December 30, 2014 @03:01PM (#8816402)
Built 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.