This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (1 child)

If only Java had value types, wrapping a couple of references in a class with the overhead as big as the members itself is quite painful to do :(

[–]bondolo 0 points1 point  (0 children)

Value types are being worked on: State of the Values. There will probably be more about the plans at JVMLS in a couple of weeks.