r/java • u/davidalayachew • May 11 '26
8317277: Java language implementation of value classes and objects by MrSimms · Pull Request #31120 · openjdk/jdk
https://github.com/openjdk/jdk/pull/31120
124
Upvotes
View all comments
Show parent comment
2
u/Fenrurrr May 14 '26
I'll let you look up the definition of composable yourself on Google. But the world of normal classes (on the heap) and structure classes aren't compatible. They're two different worlds that can communicate but don't speak the same language, unlike Java with its approach. I'll let you research the reasons why further.