Heh, realized today I actually never use match flattening. match res { Err(e) => /**/, Ok(Some(t)) => /**/, Ok(None) => /**/, } So much cleaner than nesting two match statements!
-
-
Sometimes it also makes a lot of sense to match on a tuple (a, b) if there is any sort of conditional logic on b in the match for a.
-
Woah, I've actually never considered doing that before.
- 1 more reply
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.