logoalt Hacker News

SpaceManNabsyesterday at 8:33 PM2 repliesview on HN

Wait generics? What changed? Why is golang accepting of generics now?


Replies

a2ff6eeb0yesterday at 8:36 PM

They landed half a decade ago...

show 1 reply
nrryesterday at 8:49 PM

There are some details here about the history of how generics finally came to Go: https://golang.design/under-the-hood/en/part2lang/ch08generi...

The tl;dr boils down to a combination of valuing both compilation speed and execution speed.