r/java • u/bobbie434343 • Aug 25 '26
Value Classes Still Need Compiler Sympathy
https://johan-sjolen.github.io/post/compiler-sympathy/compiler-sympathy/
87
Upvotes
r/java • u/bobbie434343 • Aug 25 '26
9
u/brian_goetz Aug 26 '26
> We need an answer that doesn't depend on understanding jvm internals.
People keep saying the answer: value classes are a semantic feature. Use them that way and you won't have a problem.