News for hackers. Stuff that matters.
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.
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".
Re:Java's records, Lombok's data, and Kotlin's data classes by krzyk on Friday May 07, 2021 @02:59PM (#27079575)
Who is they?

You mean the article author? Yes, it was odd that he mentioned that, but besides that not a bad feature to have (but a bit wordy for my taste, I hope they'll change that).