Since #Java16 was released, new JEPs have been proposed left and right on everything from primitive classes to pattern matching, frozen arrays, and more. Let's take a look! 🧵 (This is the short version - check my last newsletter for more: medium.com/nipafx-news/st…) 0/14
JEP 401: Primitive Objects openjdk.java.net/jeps/401 Proposes to introduce "primitive classes" (formerly known as value types). Instances have no identity and allow the JVM to represent them as "primitive values" without memory overhead or indirection. 1/14
JEP 402: Unify Primitives with Objects openjdk.java.net/jeps/402 Proposes to apply the concept of primitive classes to Java's primitives and their wrappers: For primitives, `23.compareTo(42)` will be legal. Their former wrappers benefit from reduced runtime overhead. 2/14