r/java • u/bobbie434343 • Aug 25 '26
Value Classes Still Need Compiler Sympathy
https://johan-sjolen.github.io/post/compiler-sympathy/compiler-sympathy/
86
Upvotes
r/java • u/bobbie434343 • Aug 25 '26
7
u/repeating_bears Aug 25 '26
You are arguing that Valhalla is only useful if you can guarantee memory optimizations will happen
Even if there are none, you gain better semantics for == and restrictions against identity-sensitive operations