5 ms·
What do you mean? Why do you feel this way?
by mjolk 13y ago
What do you mean? Why do you feel this way?
- anonymoushn 13y agoGo has no generics. You can either rephrase your program to not need them, or pretend that you're using a less-typed language and write code that can blow up at runtime.
- crypto5 13y agoAnd maybe you have a chance to provide simple example of how program can be rephrased in such way that generic will not be needed?
- TylerE 13y agoMany problems need generics to be solved elegantly. Go doesn't have generics. It is completely impossible in Go to write things like user-defined polymorphic container types.
- otterley 13y agoAnd yet, much of the world runs on code developed in languages that don't have them (C etc.)
- TylerE 13y agoYea, it works, in the sense that the bulk of world finance "worked" running on COBOL for 30 years.
- copergi 13y agoAnd look how poorly that worked out. People assume software will break all the time, because most of the software they are exposed to does exactly that. It is 2014. There is no excuse for using languages lacking important features from 1973.
- dmit 13y agohttps://groups.google.com/forum/#!msg/golang-nuts/Rj5t1h_ztxI/Fgs6HfLqMHAJ https://groups.google.com/forum/#!msg/golang-nuts/Rj5t1h_ztx...
- mjolk 13y agoWhat problems do you believe that you'd hit regularly that can't be elegantly solved without generics? I haven't used much Go, but isn't its duck typing implementation appropriate for the most common needs of generics?