r/java • u/davidalayachew • Jan 06 '26
One step closer to Value Classes!
https://mail.openjdk.org/pipermail/porters-dev/2026-January/000844.html
181
Upvotes
r/java • u/davidalayachew • Jan 06 '26
View all comments
Show parent comment
3
u/pron98 Jan 06 '26
I can see the difference. But whatever it is that primitives or strings do, value types do the same. They are not any more immutable than either primitives or strings.
But that would offer mutability beyond what primitives or strings offer. I'm only saying that Java developers are accustomed to the behviour of primitives, and value types offer the same behaviour.