News for hackers. Stuff that matters.
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
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.
Re:Java's records, Lombok's data, and Kotlin's data classes by kasperni on Friday May 07, 2021 @03:17PM (#27079816)
Yes, just add 'primitive' before record in the declaration.