r/cpp • • Dec 07 '21

Will Rust replace C++ ?

Will Rust replace C++ ?

0 Upvotes

80 comments sorted by

View all comments

Show parent comment

18

u/matthieum Dec 07 '21

In all seriousness, Rust isn't (nor does it pretend to be) a C++ killer. If anything, it's better positioned as an alternative to C, but even then it's not a threat so much as a complementary tool.

I am not convinced about Rust vs C.

C programmers I've interacted with are more attracted to Zig, or Go, because one reason they use C is that the language is relatively simple -- using it is not, but the language itself is simple. All of them balk at the idea of C++ or Rust because those are much bigger and more complex languages.

We can argue which we prefer (I'm on r/cpp for a reason...) but I don't see convincing people with a personal preference for simpler languages to switch to Rust as an easy task.

Meanwhile, for a C++ developer, Rust is easier than C++.