4 ms·
Not at all. If a function can't or shouldn't be responsible for handling an error, it can return that error. The result is that the error passes back up the cal
by zmj 14y ago
Not at all. If a function can't or shouldn't be responsible for handling an error, it can return that error. The result is that the error passes back up the call stack until something handles it.
It's very similar to exceptions, except you have to consciously choose to do it. That's a virtue to me.