3 ms·
Rust is fabulous at avoiding those types of errors. Use rich types to avoid domain errors, use Rust's enum's to hold state data and then use exhaustive match
by bryanlarsen 4y ago
Rust is fabulous at avoiding those types of errors. Use rich types to avoid domain errors, use Rust's enum's to hold state data and then use exhaustive match etc to avoid logic and algorithmic errors, use wrapping_add et al to avoid arithmetic errors.
- FpUser 4y agoThese features are helpful no doubt but would in no way guarantee "if it compiles it works" promise.
- pdw 4y agoNobody made a promise. The comment you're reacting to said "happens often to me".
- bryanlarsen 4y agoIt only has to help infrequently for it to be a win. And it helps more than infrequently.
- mcronce 4y agoIt's not a promise, it's an observation