Re:Exceptions should be Exceptional (2016)
by Johan-bjareholt on Friday March 13, 2020 @09:16AM
(#22566999)
Which is why Result and Error types exist. With those you get both the context of the error as well as making it clear that the code you are entering needs error handling to be safe. Much less of an issue than calling code that unexpectedly raises exceptions.
[ Parent
| on HN ]
And they do have their uses but they are not good enough by their own. Having both exceptions, result types and maybes is a lot better to have and to use appropriately than only have one or the other.