Skip to content
0:00 / 0:00

#checkedexceptions#eithermonad#java21

Towards Better Checked Exceptions - Inside Java Newscast #107

Java

276K subscribers • 15 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Made by the vendor. The company whose product it covers made or sponsored it.

Intermediate. Assumes working knowledge.

8.4K views8 months ago1 recommendation

Programming languagesJava and the JVMLanguage design and type systems

An exploration of the issues with Java's checked exceptions and potential language, library, and stylistic improvements.

Java's checked exceptions are both an integral part of the language and one of its most contested features. Whether their introduction was a mistake and whether they should all be turned unchecked are frequently discussed topics but since the former is not overly relevant and the latter unlikely, this conversation isn't moving Java forward. Instead, let's talk about specific issues with checked exceptions and what could be done about them - from (entirely speculative) language changes to (marginally realistic) JDK/library evolution to stylistic changes. Come to *JavaOne 2026* in Redwood City, March 17th-19th, and get *100$ off with code J12026YTLFV* : oracle.com/javaone/ JEP draft for Exception Handling in switch: openjdk.org/jeps/8323658 Two tutorials for `Either`: * medium.com/@samuelavike/either-monads-in-java-elegant-error-… * jherrlin.github.io/posts/error-handling-with-either/ Intro Inherited Checkedness Too Many Checked Exceptions Catching Unthrown Exceptions Functional Error Handling and Deferred Computation Stylistic Changes Tags: #Java #OpenJDK #Coding #Errors

Why it's here

1 person recommends this

What people say. Recommended as an interesting discussion on how Java could improve its checked exception model, drawing comparisons to Scala's approach.

u/RiceBroad4552in r/scala • Recommends

How funny, they are reinventing Scala I came across that video on inside.java, where I also found this here: Either Monads in Java: Elegant Error Handling for the Modern Developer \---- The 🦀 people claim everything develops into 🦀. I claim: Everything develops into Scala! 😂 Just that we're again a step ahead.