by cpeterso · 7y ago · 0 comments
The case you mention above might have been prevented by using checked Java exceptions. Our programming languages and tools could be doing a lot more to catch these problems at compile time or make them impossible by language or API design.
As you said it would be nice if the languages could make these situations impossible.
I think its a bit of a chicken and egg problem because some language issues don't come to light until people are using it and it is too late.