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

The Trouble with Checked Exceptions A Conversation with Anders Hejlsberg, Part II

https://www.artima.com/articles/the-trouble-with-checked-exc...



This is an insightful interview, thank you for the link. I'm well read up on the topic, but this interview was still great and is a good perspective on the checked/unchecked debate.

The fact that Java has introduced UncheckedIOException, in my opinion, shows how some people in the Java community have come to believe that checked exceptions were a mistake (understanding that lambda forced the issue). There's probably not too much to be easily done at this point, but consideration for changing checked exceptions in the JDK to extend RuntimeException sure would be interesting.


I think this project shows how trivial it is to convert checked exception errors to compiler warnings.

https://github.com/rogerkeays/unchecked/blob/f22c8cde3557de0...

No need to change the type hierarchy. Just make it a compiler option.




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

Search: