#rustlang can yinz give me a concrete example of a case in your code (not stdlib) when you would want to call `panic!`?
-
-
in a main when matching on a Result::Err to both log the error and trigger an exit?
-
let foo = match parse_foo(&buf) { Ok(f) => f, Err(why) => panic!("Unable to parse foo: {}", why), };
- 4 more replies
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.