3 ms·
To me, the advantage isn’t so much that you have to handle every error. It’s that you can see, with certainty, which functions and methods are error-free. I eve
by spenczar5 3y ago
To me, the advantage isn’t so much that you have to handle every error. It’s that you can see, with certainty, which functions and methods are error-free. I even find myself encouraged to write functions that cannot return errors.
You don’t get anything similar in exception-based systems.
Of course, algebraic error types share this advantage. They are good too.