55 ms·
Language designers: Design a language to not use generics. timothycrosley: It doesn't do generics!!! Aaargh!!
by zadokshi 7y ago
Language designers: Design a language to not use generics.
timothycrosley: It doesn't do generics!!! Aaargh!!
- jeremyjh 7y agoExcept they didn't. Go has generic maps and slices. It was never their goal to create a language without generics. What happened is they failed to come up with a satisfactory design for user defined generics in time to make Go version 1.
- zadokshi 7y agoExactly, They didn’t feel it was important. It was not part of the language design. https://golang.org/doc/faq#generics https://golang.org/doc/faq#generics