News for hackers. Stuff that matters.
Re:Go Creeping In by the_duke on Tuesday June 18, 2019 @07:56AM (#20212018)
It can be found in many libraries in the ecosystem, and is common enough in the standard library.

The lack of generics just severely restricts the expressiveness of the type system.

I think the best way to work around this is use of code generation, which is a great tool for internal, controlled environments, but very cumbersome for open source libraries.

Re:Go Creeping In by enneff on Tuesday June 18, 2019 @08:16AM (#20212180)
I don’t see much, if any, generated Go code at Google. Not to say that it doesn’t happen but it’s not on my radar.
Re:Go Creeping In by zigara on Tuesday June 18, 2019 @08:30AM (#20212272)
Re:Go Creeping In by pjmlp on Tuesday June 18, 2019 @09:40AM (#20212841)
Kubernetes makes heavy use of generated code, as workaround for lack of generics.

They even gave a FOSDEM talk about this, with a very interesting title.

https://fosdem.org/2019/schedule/event/kubernetesclusterfuck...

Re:Go Creeping In by dnautics on Tuesday June 18, 2019 @10:16AM (#20213214)
Aren't http or grpc apis autogenerated? You'd be crazy not to use a generator for those.