Here's one advantage of Rust over C++: Immutability by default. In Rust, you have to mark a variable as mutable, whereas in C++ you have to mark it as immutable. What's the problem here? Usually, most variables don't need mutability. Thus we end up with const all over the place. |
||
---|---|---|
.. | ||
arch | ||
boot | ||
memory | ||
video | ||
config.h.in | ||
Log.cpp | ||
Log.h | ||
main.cpp |