On 23/12/2013 22:26, Kevin Ballard wrote:
Even with refutable `let`s, I think there's still a good case for
having `.unwrap()`-style APIs on enums, which is that often you need
to unwrap an enum inside a larger expression. A refutable `let` only
works if you're actually using a `let`-binding to begin with.

Please don’t change the subject of (at least this part of) this thread.

This is about having both variations of an API (using task failure or returning Option) vs. only the latter (and using unwrap() when task failure is desired.) It is not about refutable let vs. unwrap-style methods.

--
Simon Sapin
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to