Re:Java's records, Lombok's data, and Kotlin's data classes
by loukrazy on Friday May 07, 2021 @12:19PM
(#27077547)
Isn’t the point that Record classes will be able to be upgraded to value types easily once Valhalla is done? Or am I missing something
[ Parent
| on HN ]
Re:Java's records, Lombok's data, and Kotlin's data classes
by The_rationalist on Friday May 07, 2021 @01:08PM
(#27078208)
No they won't (or maybe they will be able to be speculatively opt-deopt?)
Value types above a relatively small size are less efficient than references.