5 ms·
Unchecked exceptions are the worst of both worlds: you can call a function that will throw an exception that you could recover from but you have no idea, so you
by hota_mazi 6y ago
Unchecked exceptions are the worst of both worlds: you can call a function that will throw an exception that you could recover from but you have no idea, so you don't even know you should catch it.
At least, Either/Option force your code to take errors into account.
You still have to bubble them up and compose them manually, though, which is why checked exceptions shine.