3 ms·
Exceptions are second only to proper return types for error handling such as Result<T, E> or Option<T>. And in order to have those you have to have generics. O
by alkonaut 8y ago
Exceptions are second only to proper return types for error handling such as Result<T, E> or Option<T>.
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.
- hota_mazi 8y agoNo, because you are still bubbling these 17 stack frames, as OP was (rightfully) complaining about. The only downside of exceptions is the loss of equational reasoning, really. But for everything else, they are a superior approach to result values.