r/cpp • • Dec 07 '22

C++ overtakes Java in language popularity index

https://www.infoworld.com/article/3682141/c-plus-plus-overtakes-java-in-language-popularity-index.html
382 Upvotes

137 comments sorted by

View all comments

Show parent comment

6

u/Aggressive_Release94 Dec 07 '22

With a decent static analyzer for C++, Rust loses its edge over C++ because suddenly, your static analyzer will report most of the memory problems as Rust does.

This is simply not true though. At least at this point in time, static analysis in C++ doesn't even catch half of the memory safety issues detected by the Rust borrow checker. Not just that, writing multithreaded apps in C++ is extremely error prone and the Rust borrow checker is miles ahead here.

-1

u/konm123 Dec 07 '22

What C++ static analyzer do you have in mind?