4 ms·
> How is that different than with error return values? Compare: https://gist.github.com/nickretallack/1462f2652cda6fc2a97283576c379213 https://gist.github.com/
by tiglionabbit 10y ago
> How is that different than with error return values?
Compare: https://gist.github.com/nickretallack/1462f2652cda6fc2a97283576c379213 https://gist.github.com/nickretallack/1462f2652cda6fc2a97283...
If you can find a way to improve these code samples, please suggest it.
> Exceptions seem to hide the problem.
I haven't used Java in a while, but I recall a feature where it would force you to handle exceptions. It knows what kind of exceptions a function can throw, and it can check if they are exhaustively handled throughout the program.