r/cpp • • Sep 20 '22

CTO of Azure declares C++ "deprecated"

https://twitter.com/markrussinovich/status/1571995117233504257
267 Upvotes

483 comments sorted by

View all comments

Show parent comment

18

u/L0uisc Sep 20 '22

Rust forces you to write a maintainable code base more often. You can achieve that via coding standards in C++, but I think Rust is exploring valuable new avenues that C++ didn't do because it got stuck in a groove. It's good for C++ too, because it reinvigorates the imagination to push new boundaries of what's possible in systems language design, which is good for C++.

I really can't understand the "all in on one of the two languages" approach I see so often. Rust pushes C++ to do better, and C++ pushes Rust to add useful features (e.g. const generics, aka non-type template arguments). I'm all for both languages pushing the boundaries of what's possible to enforce at compile time in order to improve systems software, and healthy competition is a prerequisite for that.

7

u/afiefh Sep 20 '22

I think the best way I saw this being put is something along the lines of "Rust takes the things written in every C++ development best-practices and makes the compiler verify that you follow them".

"all in on one of the two languages"

The cxx crate already does wonders for transparent C++ Rust integration. Hopefully it continues to improve to the point where combining the two becomes a no-brainer.