I haven't really dug into that stuff to know why it's better/worse than do, but do hardly seems like a big win.
-
-
e.g. match thing { Ok(x) => x; Err(error) => return Err(error) }
-
Yes, that's exactly what `try!` does (with an `into` call on the error in case there's conversion)
- 2 more replies
New conversation -
-
-
Since Rust has nonlocal branches as exprs, can't you already macro away the failure/await edge?
-
That's what we do today, but it only works with `Result`.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.