Matej Cerny's avatar
Matej Cerny 1 month ago
Let's look at four possibilities that JDK 17 adoption could unlock for the upcoming #Scala versions. 🧵

Replies (1)

Matej Cerny's avatar
Matej Cerny 1 month ago
1️⃣ JEP 409 (Sealed Classes) standardizes sealed hierarchies, a feature Scala pioneered. This allows the Scala compiler to emit native sealed bytecode, enabling safer consumption from Java (via exhaustive switch checks) and letting Scala natively match Java's/Kotlin's sealed types