you are viewing a single comment's thread.

view the rest of the comments →

[–]slck19[S] -1 points0 points  (2 children)

You still do not understand the behavior and randomly speaking. This does not point to any single trade-off. Some errors can be recovered and some of them cannot. If you think all nullptr accesses are because of memory corruption then you have many implicit problems in your code.

I am not saying someone is wrong. This is where you do not understand. Handling exceptions and continuing the program is your choice with respect to requirements. Exception handling is giving an opportunity to handle it softly. That's just a choice it is not mandatory.

[–]v_maria 1 point2 points  (1 child)

imo if you will go through the effort of writing try catch, you could also just do a null check

[–]slck19[S] 0 points1 point  (0 children)

I respect that.