4 ms·
The Trouble with Checked Exceptions A Conversation with Anders Hejlsberg, Part II https://www.artima.com/articles/the-trouble-with-checked-exceptions https://w
by clownvorld 3y ago
The Trouble with Checked Exceptions
A Conversation with Anders Hejlsberg, Part II
https://www.artima.com/articles/the-trouble-with-checked-exceptions https://www.artima.com/articles/the-trouble-with-checked-exc...
- taftster 3y agoThis 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.
- rogerkeays 3y agoI think this project shows how trivial it is to convert checked exception errors to compiler warnings. https://github.com/rogerkeays/unchecked/blob/f22c8cde3557de00327871b3b303f0da4ba7537b/Unchecked.java#L49 https://github.com/rogerkeays/unchecked/blob/f22c8cde3557de0... No need to change the type hierarchy. Just make it a compiler option.