4 ms·
I have misread your comment. So, your experience with handling errors that must be returned to the caller is tedious. Hmm, I do not feel it is tedious. I will
by bilinguliar 4y ago
I have misread your comment.
So, your experience with handling errors that must be returned to the caller is tedious.
Hmm, I do not feel it is tedious. I will likely bubble it up the stack, report it and return a relevant code.
I appreciate that this is almost linear, without mental complexity of exception, where you occupy another part of your brain with accounting for exception handling.
- jen20 4y ago> report it and return a relevant code. This would be more convincing if the signature of func main in go even permitted an exit code. Instead one must use os.Exit which does not run defers, or have main consist primarily of a call to os.Exit(realMain()).