Yes, but that's not a dichotomy. Languages like Java have function declare what exceptions they throw, and the caller must either catch it or also declare that it throws it. Gets cumbersome quickly, but I believe it's for the best to encode exceptions at the type system.
drysine|1 month ago
dan00|1 month ago
Also error codes are part of the signature of a function, which exceptions aren‘t.
listeria|1 month ago
ahtihn|1 month ago
yunnpp|1 month ago