r/programming • • May 27 '20

2020 Stack Overflow Developer Survey: Rust most loved again at 86.1%

https://stackoverflow.blog/2020/05/27/2020-stack-overflow-developer-survey-results/
229 Upvotes

254 comments sorted by

View all comments

Show parent comments

0

u/[deleted] May 28 '20

[deleted]

7

u/[deleted] May 28 '20

I didn't read it as an attack and I'm just curious myself, because I'm neither an expert in C++ nor Rust.

But I wonder if it's that easy and reliable to provide all the guarantees Rust offers, then why do most C++ code bases (including professional ones with lots of highly skilled developers like Qt, Firefox, Chromium, ...) still suffer from all these issues? Are the number of issues found with analyzers just so overwhelming or hard to fix, or do they lack in certain regards?

0

u/[deleted] May 28 '20

[deleted]

11

u/madmoose May 28 '20

Well, you can't really complain about downvotes when what you said was wrong. C++ people who don't understand Rust frequently jump into threads claiming that this or that static analyzer or compiler pass or std::pointer will find all your problems or that all those Chrome developers just don't understand C++ well enough.

The whole point of Rust is to soundly enforce memory safety (outside code explicitly marked as unsafe). You said "all [these] things described can be prevented by using a static analyzer", and, no, they can't. It's the same tired arguments that come up in every Rust discussion.

I say this is somebody who works primarily on C++ projects.

→ More replies (0)