logoalt Hacker News

nasretdinovtoday at 6:31 PM1 replyview on HN

That is true. Moreover, in general the performance of generic code in Go isn't any better than interface-driven one. Generics are there in Go just for better type safety, and IMO that's sufficient already :)


Replies

rednafitoday at 7:54 PM

It's all tradeoffs. Fully monomorphized generics tend to blow up compile time.

show 1 reply