Hacker News new | ask | show | jobs
by est31 1776 days ago
C++ is definitely better but it's still not memory safe. Compared to Rust, you still have little tracking which thread has access to which variable at which time. Even in modern C++, you still have to care about iterator invalidation.
1 comments

It's far from done, but the GCC static analyzer actually can find iterator invalidation!
Some of it. Because a sound analysis would throw FPs up too frequently, they make the logical decision to use an unsound analysis. This is helpful, but cannot prevent the entire class of issues.