#rustlang can yinz give me a concrete example of a case in your code (not stdlib) when you would want to call `panic!`?
but you don't want to tell the caller they're using it incorrectly?
-
-
What would the caller do? "Some unknown bug was detected". Probably it needs to inform *its* caller. Hence, unwinding = good.
-
brb copy-pasting this into the book
End of conversation
New conversation -
-
-
same logic as with assertions really (which in Rust panic, but are a very cross-language concept)
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.