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

Checked exceptions are universally seen as a mistake in Java*

* - according to a couple of loudmouths on the internet



And the designers and the Java stdlib itself, seeing as it's pretty much all runtime exceptions in everything introduced in Java 8 and later

Also JVM guest languages like Kotlin and Scala treat all exceptions like runtime.


Checked exceptions with lambdas are a nightmare from what I remember.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: