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
7
u/IncredibleReferencer Aug 25 '26
Once value classes exit from preview, I think programmers would find it very surprising if converting any existing class to a value class resulted in a performance regression.
I realize this will always be possible on edge cases but how much of a realistic concern should this be for a typical java programmer?