3 ms·
I really see no reason for these. The difference could be easily seen in the types themselves. I’ve posted that elsewhere but you could have an func thing(st
by baby 7y ago
I really see no reason for these. The difference could be easily seen in the types themselves. I’ve posted that elsewhere but you could have an
func thing(stuff _.T, stuff2 _.k)
Or
func thing(stuff g.K)
And so on.
Also want to point out that there is a LOT of Golang code that is being shipped and used in the world and none of it uses generics. Do we really need them?
- continuational 7y agoA lot of assembly code was being shipped before we had better languages. That's no reason to be stuck with a type system of the previous millennium.
- baby 7y agoI honestly think generics are like oop. Vastly overestimated.