> the downside is there is significant compile time and link time cost to generics.
Are we talking statistically significant or productivity significant compile time cost? Go has a fairly fast compiler, it would be a shame if generics made that a less stand-out feature.
Re:Expectations for generics in Go 1.18
by mseepgood on Thursday October 28, 2021 @03:07AM
(#29023263)
The hybrid approach is absolutely implemented: https://github.com/golang/go/blob/master/src/cmd/compile/int...
The upside is there is no runtime cost to using generics, the downside is there is significant compile time and link time cost to generics.