3 ms·
If you want to force the consumer to consider an error case and make some decision about it... Well, I actually like Java's checked exceptions. You've got to e
by Terr_ 12y ago
If you want to force the consumer to consider an error case and make some decision about it... Well, I actually like Java's checked exceptions.
You've got to emit an error somehow and static checking ensures the consumer won't accidentally ignore the case. (Deliberately, perhaps, but that's a people-problem rather than a technology one.)