3 ms·
Exceptions and null both require the caller to 'deal with it' verbosely, so neither saves lines of code. But the only thing more annoying than a loud failure (
by mrkeen 2y ago
Exceptions and null both require the caller to 'deal with it' verbosely, so neither saves lines of code.
But the only thing more annoying than a loud failure (exceptions) is a silent failure (null) which keeps executing.