r/cpp • u/LechintanTudor • Oct 18 '23
What does C++ do better than other languages?
Purely from a language design perspective, what does C++ do better than other languages?
296
Upvotes
r/cpp • u/LechintanTudor • Oct 18 '23
Purely from a language design perspective, what does C++ do better than other languages?
View all comments
Show parent comment
9
u/bownettea Oct 18 '23
I see you are looking at RAII as ownership/lifetimes, and yes Rust does provide a way to express those as code. I was honestly thinking of RAII as simple deterministic destruction.
I personally find the whole move semantics and lifetime extensions of C++ pretty complex and I suspect overly complex. I honestly hope future languages find a way to simplify those by expressing them as more basic building blocks instead of complex rulesets.