#rustlang can yinz give me a concrete example of a case in your code (not stdlib) when you would want to call `panic!`?
so I haven't done much C/C++, my guess is you get a feel for this, but how paranoid do you decide to be? why not assert everything?
-
-
In C++ we've learned that you at least assert the things that would result in exploitable bugs...
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Asserts have a runtime cost. So usually we only assert if there are security implications or as documentation.
-
One of the nice things about Rust's type system (vs C++) is being able to express some of those constraints directly.
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.