4 ms·
Yep, seemed weird to me how (a form of) generics existed, but was exclusive to the stdlib/language. If generics were unnecessary, why did the stdlib/language n
by Cyph0n 6y ago
Yep, seemed weird to me how (a form of) generics existed, but was exclusive to the stdlib/language.
If generics were unnecessary, why did the stdlib/language need them? Couldn't they just have lived with, e.g., make_map, make_slice, make_chan, etc?
- piinbinary 6y agoAnd a separate copy of `append` for every possible type :)
- cies 6y agoExactly. It was IMHO pretty authoritarian to say "you dont need generics" and then use it yourself in the standard lib. But then Go is not a public place: it's private domain of Google. I decided long time ago I dont want to learn a private tool without being paid.