Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Checked exceptions are not ergonomic.

Whatever other benefits they might have are lost when every Java developer rethrows every checked exception as a more ergonomic RuntimeException.



> Checked exceptions are not ergonomic.

its about the same ergonomics as rust error handling. Its just many people don't like to check exceptions, similarly many people write python code without explicit types.


Still better than losing an error case. But java’s solution is not the most ergonomic, no one was talking about that implementation.


What checked exception implementation do you have in mind then?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: