News for hackers. Stuff that matters.
Re:You’re better off using Exceptions by hn_acc_2 on Monday February 03, 2020 @11:53AM (#22225990)
Actually, I think exceptions are the clearest way to represent errors of any kind (reconcilable or not).

> A null value, a plain "error" object, or an error argument

In my mind, this just adds a lot more mental overhead while also being less informative than a simple exception. Plus you have to keep track of which method your current library has chosen to represent errors.

Note I am biased from using Python for a long time.

Re:You’re better off using Exceptions by mratsim on Monday February 03, 2020 @11:59AM (#22226078)
For me exceptions are for exceptional cases.

Any time you have user input, you can expect errors and so should have proper paths to handle file not found, invalid input, ... For those case, exceptions should not be used.