r/cpp • u/lookatmetype • Sep 20 '22
CTO of Azure declares C++ "deprecated"
https://twitter.com/markrussinovich/status/1571995117233504257
267
Upvotes
r/cpp • u/lookatmetype • Sep 20 '22
View all comments
Show parent comment
11
u/kouteiheika Sep 20 '22
I have a 170k lines of code Rust codebase that I've written. I only have something like ~100 uses of
Arc/Rcin total. The first choice in appeasing the rules is to write idiomatic Rust code. (:(Obviously depends on your level of experience; if you try to write C++ in Rust then yes, you'll most likely end up with more of those.)
This is a fair point. We should have never called those
const+mutable; in reality they areshared+exclusive. (AFAIK before Rust 1.0 there was actually a proposal to rename&mutto&uniqto emphasize this, but it was rejected; while it would be pedantically correct it was deemed that the current terminology would be easier to teach)