11 ms·
It’s C’s lack of complexity which makes it necessary to do dangerous things for everyday purposes. I’d much rather a novice interact with generics, where the co
by closeparen 8y ago
It’s C’s lack of complexity which makes it necessary to do dangerous things for everyday purposes. I’d much rather a novice interact with generics, where the compiler is a safety net, than with void * and interface{}.
- themihai 8y ago>> It’s C’s lack of complexity which makes it necessary to do dangerous things for everyday purposes. That's not the case anymore. We have C++ which has generics and "fixed" C's lack of complexity for sure...Now for some 'weird' reasons some people still use C. Wonder why ?
- wbl 8y agoCompare C++ to Standard ML. Simplicity is compatible with generics.
- pjmlp 8y agoIt is not the case since 1993, when CFront was dropped. In certain domains like UNIX like OSes, I don't see C ever going away, due to the infrastructure, symbiotic relation with the OS that gave it birth, and the culture.
- dullgiulio 8y agovoid * and interface{} are not going away when generics come. Try searching for "Object" or "<?>" in some Java code...
- Filligree 8y agoWhich is why Go 1's type system was a bad decision. interface{} should have never existed in the first place. At least it'll definitely get rarer.