Earlier quoted context omitted.
I wonder how much developer time is spent due to a lack of generics. Developer time costs more than compiler time.
I imagine not that much in practice. It is not like someone is going to manually write out identical functions twenty times for each type they want to support. That's precisely what computers are good at doing and there are countless tools to do it painlessly. The bigger problem is that Go doesn't have type inheritance or similar. Meaning, there's no great way to say that this generic function will only work with num…
I'll stop you right there. Have you seen a modern Go codebase?
They most certainly duplicate the simplest of functions, resort to `go generate`, or use reflection.