Re:A categorized list of all Java and JVM features since JDK...
by chrisseaton on Thursday April 01, 2021 @04:31PM
(#26665643)
What you're talking about is just wrapping a single value. It's a type-system thing.
What we're talking about are wrapping compound values. It's a VM implementation thing.
They're not really comparable.
This is exactly what Value Classes are in Scala. You supply an underlying value which is then interpreted as the value itself, not a reference.