News for hackers. Stuff that matters.
Re:A categorized list of all Java and JVM features since JDK... by halfmatthalfcat on Thursday April 01, 2021 @03:33PM (#26665034)
It has Value Classes which are essentially the same thing. They transpile down into the value itself but wrap the value in extra functionality if you so choose.
Re:A categorized list of all Java and JVM features since JDK... by kaba0 on Thursday April 01, 2021 @03:54PM (#26665246)
They can only wrap a single primitive type - it’s a nice feature but nothing extraordinary. When Java implements primitive types, Scala will probably use this same construct. But the change have to come from the runtime level.