2 ms·
Many 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 c
by TylerE 13y ago
Many 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?