3 ms·
Congratulations. Welcome to why you don't use Go. Lack of generic access to data structures is one of their bigger fails. However, they don't see it that way
by bsder 12y ago
Congratulations. Welcome to why you don't use Go.
Lack of generic access to data structures is one of their bigger fails.
However, they don't see it that way. One point of Go was to prevent needing to describe things before being able to compile it. Most things that people regard as "failures" in Go were deliberate choices to enable large codebases.
- deleted 12y ago[deleted]
- misframer 12y agoNo, 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.