Re:Announcing Rust 1.13
by JoshTriplett on Thursday November 10, 2016 @03:38PM
(#12924092)
True, though in some cases you may want to write that one as:
That becomes a bit more verbose, but it reads left-to-right, and works better if you want to use a closure as one of the functions. Which form looks more readable in a given circumstance may depend on the nature of foo, bar, and baz.
[ Parent
| on HN ]
It has somewhat different semantics though, for instance with `?` all three functions can use different error types.
Re:Announcing Rust 1.13
by richardwhiuk on Thursday November 10, 2016 @05:44PM
(#12925254)
They have to be convertable though, because the function must have a single result code.