#rustlang can yinz give me a concrete example of a case in your code (not stdlib) when you would want to call `panic!`?
-
-
asking for a friend
-
in a main when matching on a Result::Err to both log the error and trigger an exit?
- 5 more replies
New conversation -
-
-
I don't use Result to pass the buck on bad input. That's the kind of antipattern that drove me away from javascript
-
interesting.
End of conversation
New conversation -
-
-
it's useful anytime you want to make an assert that survives into production
-
it's a flag saying "this really really can't happen... Really.
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.