3 ms·
Golang errors are fancy error codes. They have almost all the same problems, except that they at least don't rely on carefully curating error numbers. They sti
by tsimionescu 7y ago
Golang errors are fancy error codes. They have almost all the same problems, except that they at least don't rely on carefully curating error numbers.
They still can't tell you the call stack, you still need to propagate them manually, they are still very easy to accidentally ignore (especially on functions which don't return anything else), they still add huge amounts of boilerplate, making it hard to read the code and distinguish <happy-case logic> from <regular error-bubbling logic> from <the places where errors are actually handled>.