4 ms·
Library authors were the main target group, I think. Without generics, your library has to define interfaces that your users have to implement and it all gets
by marcus_holmes 2y ago
Library authors were the main target group, I think.
Without generics, your library has to define interfaces that your users have to implement and it all gets a bit strange and unintuitive.
With generics you can write library code that is easier to use.
The thing I was worried about with this (adding generics) is that we'd start moving more towards the NPM Hell of everyone just writing plumbing code for imported packages. But thankfully that hasn't happened and idiomatic Go still tends to just use the standard lib and very few external packages.