5 ms·
Unless you care about performance. Exceptions have a performance benefit in that there's no cost if they are not thrown. With returning error values, every ca
by MoscMob 4y ago
Unless you care about performance. Exceptions have a performance benefit in that there's no cost if they are not thrown. With returning error values, every caller up the chain has to test the error condition.
We've used exactly for this reason to improve performance, albeit this was a long time ago.