Hacker News new | ask | show | jobs
by futureastronaut 2686 days ago
How familiar are you with Java?
2 comments

I was about to post something similar to this.

In java you need to specify what your function can throw and if it tries to throw something that it has not specified as being able to throw, then your program won't compile.

Agreed, checked exceptions solve the same problem, but having separate control flow mechanism for certain kinds of data still seems subpar. Return values can solve the same problems and are more general.
Not if you cannot enforce them to be checked.
That's an acceptable solution as well.
Not enough to have PTSD from it, why?
Maybe you should be familiar with it.
Cool, I'll file it under "to maybe be familiar with, things", thanks.
Or mention "PTSD" when somebody brings up Java to signal that you're above such foolishness, and rely on nobody seeking an explanation for your aversion.