4 ms·
Explicit exceptions in method signatures are a language design mistake. If you need to handle multiple classes of return values, that's what sum types are for.
by catnaroek 11y ago
Explicit exceptions in method signatures are a language design mistake. If you need to handle multiple classes of return values, that's what sum types are for. Exceptions exist to communicate secret messages from a raiser to a handler, preventing anyone in the middle from intercepting them.