Re:Java's records, Lombok's data, and Kotlin's data classes
by bcrosby95 on Friday May 07, 2021 @01:45PM
(#27078650)
It was included because changing data using records (copying it except changing the fields you need to change) is a shitty experience, so rather than showing the code you have to write, they showed you code you may or may not in the future be able to write.
[ Parent
| on HN ]
Re:Java's records, Lombok's data, and Kotlin's data classes
by dlbucci on Friday May 07, 2021 @02:00PM
(#27078810)
Seems like an odd thing to mention. They are arguing that records are better than data classes, but part of their argument is "maybe, in the future, at some point, I don't know, it will be as easy to do this thing with records as it already is with data classes, we'll only need to add new syntax and a new keyword to the language".