logoalt Hacker News

brokencodetoday at 12:20 AM1 replyview on HN

Well here’s the thing on generics. Go always had generics since the very beginning. It’s just that only certain built-in types had them.

Slices, maps, and channels all were generic from day one. Same with functions like append, copy, etc.

Your criticism makes no sense unless you think Go shouldn’t have had generics from the start, which it did.


Replies

metaltyphoontoday at 5:19 AM

I think when people mention generics, they don’t mean builtins from the language but a language construct for generics.