3 ms·
My reason why C++ is vastly inferior to C: It's just too goddamn easy to make a mess in C++ without noticing it. In C, if you make a mess, you will more likely
by jpr 15y ago
My reason why C++ is vastly inferior to C:
It's just too goddamn easy to make a mess in C++ without noticing it. In C, if you make a mess, you will more likely notice it before it's unmanageable.
- thedigitalengel 15y agoCan you be more specific? I have a counter example (assuming I've understood you): /* C / int foo () { FILE x = fopen("bar"); return 0; } /* C++ */ int foo () { ifstream in("bar"); return 0; }
- jpr 15y agoC assumes that you know the contracts that calling a function implies. fopen()'s contract requires you to close the file after you are done with it.