4 ms·
It's worth noting that safe Rust prevents two things. Please be patient with this explanation, as I'm about to butcher it badly (probably not using the right te
by swsieber 4y ago
It's worth noting that safe Rust prevents two things. Please be patient with this explanation, as I'm about to butcher it badly (probably not using the right terms):
1) UB - this is when code is invoked. Basically memory mismanagement. We know the signs: segfaults, etc.
2) Unsound code - this is code that has the potential to trigger UB if called incorrectly.
I think this distinction is pretty important. It explains why small projects in c++ can get going so quickly, and they have issues when they grow. You can prevent unsound code from triggering UB, but that of course gets harder to do as a project gets bigger.