2 ms·
> One of the advantages of C++ is that it allows this sort of control. But I believe what the OP showed is that Rust also allows you to have that level of cont
by cogman10 5y ago
> One of the advantages of C++ is that it allows this sort of control.
But I believe what the OP showed is that Rust also allows you to have that level of control. However, the default behavior for rust is to do the optimization that you have to go out of your way to manually implement in C++.
Rust isn't taking away control from what you can do in C++, instead, it's made the idiomatic approach one that is well optimized by the compiler.