2 ms·
Your phrasing ("I refuse to see…") makes me very apprehensive of trying to explain, but I'll bite. Using exceptions is dealing with errors out-of-band. Using R
by Smaug123 8y ago
Your phrasing ("I refuse to see…") makes me very apprehensive of trying to explain, but I'll bite.
Using exceptions is dealing with errors out-of-band. Using Result types is dealing with errors in-band. In-band is somewhat less flexible because you don't have the power to arbitrarily alter the execution flow of your program. Out-of-band is much easier to reason about by that very token.