3 ms·
Please don't put C and C++ in the same boat. This are two different languages and while C++ is definitely far from perfect, at least there is a lot of contruct
by ognarb 4y ago
Please don't put C and C++ in the same boat. This are two different languages and while C++ is definitely far from perfect, at least there is a lot of contruct to manage memory in a safer way (smart pointers raii) and usage of void pointers and c-like arrays are heavily discouraged.
Obliviously if you can use Rust, it's even better but that's not always the case.
- tptacek 4y agoEmpirically, if they're not the same boat, they're very similar boats. People made impassioned arguments for the plausibility of memory-safe C, too --- in fact, they still do. But look where the bugs come from, and there's a clear pattern.
- avgcorrection 4y agoCan we please have this argument withoutboats?
- pvg 4y agoit's 'whataboutism' that's forbidden, not whataboatism