And in order to have those you have to have generics. Once you have generics result types can be used for 99% if error handling.
The only downside of exceptions is the loss of equational reasoning, really.
But for everything else, they are a superior approach to result values.
And in order to have those you have to have generics. Once you have generics result types can be used for 99% if error handling.