Ohh, I finally get what people are trying to do with try{} blocks. Very specific, but I can def see this come in useful
E.g. chaining of .? operators without breaking out of the function:
fn foo() {
let res = try {
bar()?.baz()?.bin()?
}
let val = res.unwrap()
}
0 replies
1 retweet
11 likes
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.