3 ms·
Just because you think a certain error will never happen for the lifetime of a program doesn't mean that not explicitly handling it is equally robust.
by dasil003 15y ago
Just because you think a certain error will never happen for the lifetime of a program doesn't mean that not explicitly handling it is equally robust.
- eftpotrm 15y agoNo, I agree, but there's a cost/benefit calculation to be done. Plus it's not like the try...catch solution that doesn't explicitly handle the error will blow up and destroy everything; if the program is properly designed it should merely degrade onto the path of general handling, log the failure and halt whatever was being done.