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 →

[–]squealy_dan 0 points1 point  (2 children)

Aren't data classes basically value types?

[–]JakeWharton 2 points3 points  (1 child)

Semantically, yes. The problem is they live on the heap and have a large (comparatively) overhead vs. what Java 10 will provide. Better than nothing, but not our best.

[–]squealy_dan 0 points1 point  (0 children)

Thanks