3 ms·
Errors usually happen during IO, but not in the main business logic and those two can be neatly separated. But If you are coming from java I can understand the
by hpeter 2y ago
Errors usually happen during IO, but not in the main business logic and those two can be neatly separated.
But If you are coming from java I can understand the single error handling block is more comfortable, but coming from JavaScript/Typescript it's much more easy to check if err != nil, than to debug errors I forgot to handle, during runtime.