Wrote down another one I ran into last week - Rust's `.unwrap_or()` methods: https://github.com/yoshuawuyts/papercuts/blob/master/2018-05-16-rust-or-else.md …
This is what I meant: you're getting two different return types by doing it this way. Which means calling `.unwrap()` might cause a panic. Repro https://github.com/yoshuawuyts/repro-or-else … Included screens for output both with type annotations and compiled. Note the different type sigs in 2.pic.twitter.com/FsQS9a9Oer
-
-
Argh, yes it does Err(err()) and I misremembered. Thanks for your patience

-
Haha, all good! Enjoyed it & learned a bunch too! :D
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.