3 ms·
I think that assessment is more black and white than the situation. There are gradations to how much the compiler and static analysis help you. Coming from C+
by epage 8y ago
I think that assessment is more black and white than the situation. There are gradations to how much the compiler and static analysis help you. Coming from C++, I've been blown away by how much confidence Rust gives me in my code.
The borrow checker is the primary reason I feel this way. A smaller aspect is how easy it is to write white box unit tests. I can have an equivalent of a C++ static function in Rust and run unit tests on it. For C++, I'd either have to hack up the source files for when building my unit tests or make turn the function from static to being exposed in a header so my tests can access it.