4 ms·
No, that's not why you don't use go. What the parent comment is dealing with is the fact that you can't have maps keyed by a net.IP, which is implemented as a [
by misframer 12y ago
No, that's not why you don't use go. What the parent comment is dealing with is the fact that you can't have maps keyed by a net.IP, which is implemented as a []byte. Byte slices are not valid keys. This isn't really about generics.
- chorizos22 12y agoWhat?. A map key type should be parameterized type. Ergo, it is about generics.
- peterfirefly 12y agoIt is very much about polymorphism and generics.