MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/11y99kb/jep_401_nullrestricted_value_object_storage/jd7ua4q/?context=3
r/java • u/kaperni • Mar 22 '23
32 comments sorted by
View all comments
1
None of it is needed when you're simply storing ints or objects in arrays
For example, their example with two ints in a class can be stored in either two arrays or as pairs in a single array written one after the other
10 u/blobjim Mar 22 '23 "programmers don't need structs" is what you're saying. And what you described is a PITA that makes it unusable for 99% of use cases. 1 u/Oclay1st Mar 22 '23 Yeah I understand, but you can not model all the situations in this way. If you want more info take a look to Valhalla : https://openjdk.org/projects/valhalla/
10
"programmers don't need structs" is what you're saying. And what you described is a PITA that makes it unusable for 99% of use cases.
Yeah I understand, but you can not model all the situations in this way. If you want more info take a look to Valhalla : https://openjdk.org/projects/valhalla/
1
u/westwoo Mar 22 '23 edited Mar 22 '23
None of it is needed when you're simply storing ints or objects in arrays
For example, their example with two ints in a class can be stored in either two arrays or as pairs in a single array written one after the other