4 ms·
How common is the ? operator in modern Rust code? I feel like if you reach a point where almost everything returns Result and almost every call is qualified wi
by mmebane 6y ago
How common is the ? operator in modern Rust code? I feel like if you reach a point where almost everything returns Result and almost every call is qualified with a ?, the pattern has turned into something that's not much different from checked exceptions.
- dralley 6y agoIt is pretty common, but Rust gives you a lot of tools to handle errors in-place more easily than other languages as well. I'd still consider it a significant improvement over checked exceptions in the vast majority of situations.