4 ms·
To be fair, Go has typed maps and slices. You just can’t implement your own generic collections, or generic operations over collections. Those two will get you
by closeparen 5y ago
To be fair, Go has typed maps and slices. You just can’t implement your own generic collections, or generic operations over collections. Those two will get you decently far.
- vips7L 5y agoBut that’s all go has. It doesn’t have typed Sets, typed ordered maps, etc.
- BoorishBears 5y agoI don't know how people were looking at these Java 2.0-esque kludges and still arguing generics were superfluous but I'm glad it's landed: https://github.com/elliotchance/pie https://github.com/elliotchance/pie