3 ms·
I just looked into this following someone else recommending Either and my knee jerk reaction is the same as yours. The nice thing about exceptions is that you
by aidos 5y ago
I just looked into this following someone else recommending Either and my knee jerk reaction is the same as yours.
The nice thing about exceptions is that you get to take a large block of code and treat it as a whole fail-able unit. In terms of a control flow structure, being able to raise deep and goto nearer the top of the stack removes large amounts of boilerplate code, which, in my experience, makes the code more readable.
I use exceptions sparingly and deliberately. And when used like that, I find them to be a helpful feature that improves the codebase.