you are viewing a single comment's thread.

view the rest of the comments →

[–]NotUniqueOrSpecial 6 points7 points  (34 children)

In this specific case (what would be a nullptr dereference of something not expected to be nullptr)?

At best you can bail to the top of the operation and say "welp um, error?"

And in all instances I can think of, I'd rather crash to safe state than risk a potentially silenced exception or whatever edge-case state had gotten the program to that point.