3 ms·
I disagree with this, on a very strong and deep sense! Invariably you will have error conditions; situations that are expected work in order for your applicati
by wvenable 8y ago
I disagree with this, on a very strong and deep sense!
Invariably you will have error conditions; situations that are expected work in order for your application to function. Your application is expected to open a file to work, if it can't open the file then that's an error. Your program cannot continue to do whatever it was supposed to do.
You make a call and it can't do it's job. So it returns to you an error and maybe that means that you can't do your job now. So you return an error to your caller. And if you do that all perfectly, you're basically doing exception handling without any help from the language.