4 ms·
>Want undefined behaviour? C. Want segfaults? C. Want memory leaks? C. Want memory corruption? C. Want to write insecure code? C. Want all of that and a whole
by S_I 10y ago
>Want undefined behaviour? C. Want segfaults? C. Want memory leaks? C. Want memory corruption? C. Want to write insecure code? C.
Want all of that and a whole bag of inconsistent design choices? C++.
Because, yes, one day you will meet a C++ codebase which is a mixture of "forbidden C++" and "modern C++".
- existencebox 10y agoFor the last decade or so writing physics engines has been a hobby project of mine; I shamefully read your comment and realized that absolutely describes my current toy. It's been in various stages of dev since c++11 was newfangled, and combined with being the "learning experience" of a programmer moving over from C; let's just say it shows... (mentally revising my plans to ever apply to C++ jobs and not just go hide in a forest)