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.
Login to reply
Replies (1)
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.