3 ms·
In this case, it's the difference between what is an is not an error. Only one of those situations is an error. I agree having to write the same method a bunc
by wvenable 7y ago
In this case, it's the difference between what is an is not an error. Only one of those situations is an error.
I agree having to write the same method a bunch of times is tedious but that is usually not the case. Most situations have clear intentions. It's much more likely in framework APIs where there are a bunch of non-task-specific operations.
I find the whole manual propagation of errors, even with a lot of helpers, to just be tedious boilerplate. Most of the time I literally don't care about the error -- I want to crash my app, log the error, and alert me and the user. I don't need to propagate the potentially limitless number of errors possible in any non-trivial application.