|
|
|
|
|
by Kaali
3320 days ago
|
|
Monadic error handling is quite nice for domain specific errors, but for exceptional situations which are not supposed to happen, you still need some sort of an exception system. And even with domain error conditions, exceptions has a nice property of saving a stack trace, which can make error hunting a bit simpler. |
|
Otherwise no, there is really no good reason for having some orthogonal value returning system that can jump up the stack until it's caught (if ever.)
Many situations that are often considered exceptional are really not: cannot connect to server, no such file or directory, cannot bind to port...