4 ms·
Which doesn’t have value types because it should be implemented in the JVM?
by kaba0 6y ago
Which doesn’t have value types because it should be implemented in the JVM?
- halfmatthalfcat 6y agoIt 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.
- kaba0 6y agoThey 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.