3 ms·
Outside of `unsafe` blocks Rust is memory safe. It also has a much stronger type system which means code is more likely to work. That's something you have to e
by IshKebab 6y ago
Outside of `unsafe` blocks Rust is memory safe. It also has a much stronger type system which means code is more likely to work.
That's something you have to experience first hand to understand, but you know that feeling you get writing C or C++ where new code appears to work the first time you run it? "That's suspicious. It must not have rebuilt, or maybe I forgot to call the new code."
With Rust the compiler can catch so many mistakes that by the time you actually run the code there's a pretty good chance that it is right. My instinct is no longer "suspicious! Where have I gone wrong?"; it's "ha it worked! Though I'd still better double check".