Hacker News new | ask | show | jobs
by pjmlp 755 days ago
At least C++ provides the tools to avoid this kind of problems, if one choses to do so, instead of insisting into C idioms.
1 comments

Yeah, part of the problem here is that the source code and the bug were in C, and people commenting here think C and C++ are the same thing.

There's a huge difference between C and C++. There's a big difference between 2001 version of C++ and 2021 version of C++.

The languages are so different that, in general, something that happens to one of them doesn't apply to the other.