Re:The Path to Rust
by kzrdude on Thursday May 26, 2016 @04:37AM
(#11776500)
The "idomatic" version (I agree with that) simply works better. You can insert the typical `try!()` calls that short-circuit on error and return errors to the caller.
Retrofitting better error handling in the single expression version requires changing the shape of the whole thing, editing the expression throughout.
Retrofitting better error handling in the single expression version requires changing the shape of the whole thing, editing the expression throughout.