as opposed to returning `Result` or `unreachable!`?
-
-
-
asking for a friend
- 6 more replies
New conversation -
-
-
We use it in futures for where something has gone terribly wrong. http://alexcrichton.com/futures-rs/futures/task/struct.TaskRc.html#method.with … http://alexcrichton.com/futures-rs/futures/trait.Future.html#tymethod.poll …
-
These are cases where the API is being used fundamentally incorrectly.
- 3 more replies
New conversation -
-
-
In firefox we have cases where we prefer to crash-right-there because some invariant is violated so we notice and debug.
-
what kind of invariant?
- 4 more replies
New conversation -
-
-
literally panic! or do you also mean assert! and unwrap() ?
-
literally panic, although i would also love examples of assert in a non-test context!
- 5 more replies
New conversation -
-
-
More or less how I think about errors in Rust: https://gist.github.com/wycats/d52fdf26f96f1636ea9525f7d3fca1b4 …
-
thank you! this is very helpful :)
- 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.