Hacker News new | ask | show | jobs
by krab 2376 days ago
You can always opt out of the typed checked exceptions.

    try {
        ...
    } except (IOException|NoSuchElementException e) {
        throw new RuntimeException(e);
    }
If you decide you don't want checked exceptions in your code, wrapping the exceptions at the boundaries is not a huge deal.
1 comments

Or switch to a language that does that for you, like Scala or Kotlin.