3 ms·
This is one reason where I think Rust shines, and has even improved how I write C++. So many areas where rust makes me deal with a result or option that are ea
by dagmx 3y ago
This is one reason where I think Rust shines, and has even improved how I write C++.
So many areas where rust makes me deal with a result or option that are easy to take for granted. It’s a strong reminder of the number of things we should be treating as possible error cases
- bpye 3y agoIt makes you do something, but if the consumer just does .unwrap() the end result is going to be the same.
- dagmx 3y agoSure, but a developer can also write any number of other code that’s irresponsible. At that point the language has done all it can for them, and the onus is on the developer to not be lazy. And when the crash happens, it’s obvious why