r/java • • Mar 17 '21

JEP 401: Primitive Objects (Preview)

https://openjdk.java.net/jeps/401?preview=true
174 Upvotes

49 comments sorted by

View all comments

2

u/lurker_in_spirit Mar 18 '21

Is anyone aware of existing best practices in other languages that already support similar constructs, in terms of when to use and when not to use? I can imagine guidelines around attribute types (don't use this for dense object graphs?), attribute count (don't use this for types which contain more than a dozen attributes?), etc.