2 ms·
> Signaling to caller has already been shown to be a complete mistake with java checked exceptions It's not signalling which has been shown to be a complete mi
by masklinn 4y ago
> Signaling to caller has already been shown to be a complete mistake with java checked exceptions
It's not signalling which has been shown to be a complete mistake, but checked exceptions, more specifically as implemented by Java.
Signalling works just fine and is actually rather enjoyable when done well.
- kllrnohj 4y agoCan you point to an example? What has "signaled exceptions"?
- masklinn 4y ago> Can you point to an example? Rust, Swift, Erlang, Haskell, ... > What has "signaled exceptions"? Java. It's not clear what you're asking. My comment noted that signalling the possibility of errors to caller (in general) is valuable. jcelerier objected with java's checked exceptions as a counter-example, as they signal to the caller, but they're shit. However that's not a counter example, that's just java's checked exceptions being a shitty implementation of the idea.