Re:Dark side of ergonomics in Rust
by falcolas on Saturday April 14, 2018 @09:44AM
(#16837283)
At least with exceptions, “forgetting to handle the error” results in a predictable bubbling of the exception, as opposed to continuing with an unknown state.
[ Parent
| on HN ]
That’s already a property of rust errors. If a function errors you can’t use its return value until you handle the error some way either explicitly, forward it with the ? operator, or unwrap it indicating an unrecoverable error.