News for hackers. Stuff that matters.
Re:Java's records, Lombok's data, and Kotlin's data classes by razzm256 on Friday May 07, 2021 @01:26PM (#27078429)
There are many good things enabled by immutability, like safer/easier multithreading, value-like semantics for objects. It is definitely not only of academic value.
Re:Java's records, Lombok's data, and Kotlin's data classes by AtNightWeCode on Friday May 07, 2021 @03:59PM (#27080245)
Typically you use values and not objects for these kind of things so not that much gained.
Re:Java's records, Lombok's data, and Kotlin's data classes by kaba0 on Saturday May 08, 2021 @03:14AM (#27084718)
Values require copying, so depending on the problem it can be worse from a perspective point of view.