3 ms·
> You should think really carefully about using exceptions in situations that don’t correspond to the preceding section. One particularly common inappropriate u
by squaredot 4y ago
> You should think really carefully about using exceptions in situations that don’t correspond to the preceding section. One particularly common inappropriate use of exceptions is for signaling “logical errors.”
> A correct program should not do things that are undefined.
I don't see how "logical errors" and arguments of a function with undefined consequences would be really separated use cases (the author makes the example of square root of negative numbers). But I agree that exceptions are a type of meta programming that should not be intrinsic part of the logic of the program.