(Dirty?) Tricks in Java 22 - Inside Java Newscast #64

Java 22 has many language features, Java 8 could only dream of - let’s see what (dirty) tricks we can play with: we’ll see how to pattern-match Optional, how to expand a sealed type hierarchy, why nested switches may (?) be good for documentation, and how a reverse instanceof check is both elegant and questionable. We’ll also go into text block line endings and filtering streamy by type.

Make sure to check the show-notes.