Matej Cerny's avatar
Matej Cerny 1 month ago
2️⃣ JEP 441 (Pattern Matching for switch) adds new bytecode for pattern matching. These new JVM-level instructions can be potentially used in Scala's own match expressions, making them even more efficient.

Replies (1)

Matej Cerny's avatar
Matej Cerny 1 month ago
3️⃣ JEP 181 (Nest-Based Access Control) simplifies code for Scala's nested classes and companion objects. It lets them access each other's private members without the compiler generating public "bridge" methods, which is the current workaround.