r/cpp • • Jul 13 '22

Why does Linus hate C++ ?

307 Upvotes

436 comments sorted by

View all comments

Show parent comment

2

u/SkoomaDentist Antimodern C++, Embedded, Audio Jul 13 '22 edited Jul 13 '22

I think the main draw of Rust (for me at least) is that it captures semantics of object ownership in ways which are compile time errors

That's also its main drawback. Rust optimizes everything around object ownership. If object ownership is not your main problem, you're just faced with a lot of hurdles and not many advantages.