3 ms·
What is interesting is that Rust has seen a lot of interest from C++ programmers. Many C++ programmers like the fact that it takes their informal rules of safe
by RcouF1uZ4gsC 9y ago
What is interesting is that Rust has seen a lot of interest from C++ programmers.
Many C++ programmers like the fact that it takes their informal rules of safe memory/thread management (use RAII, don't use raw pointers, don't use mutable shared state, be careful of iterator invalidation in containers) and formalizes them in the type system so the compiler can check them.
In addition, Rust has some nice features like pattern matching, algebraic data types, and Traits that are not yet available in C++.
Go on the other hand, was not as compelling to C++ programmers.