3 ms·
> but is there another way to express this idiom in Rust? If you don’t want to handle Results, just ? all the way up and out of main. Then come back and deal w
by imron 6y ago
> but is there another way to express this idiom in Rust?
If you don’t want to handle Results, just ? all the way up and out of main. Then come back and deal with them as necessary when you’re ready.
It’s far nicer than dealing with exceptions.
- masklinn 6y agoAlso `anyhow` exists specifically to support that use-case: you're developing an application and you largely just want to bubble up errors and show them to the user, with the odd spot of internal handling.