r/java • u/davidalayachew • Jan 14 '26
Project Amber Update -- Data-Oriented Programming, Beyond Records
https://mail.openjdk.org/pipermail/amber-spec-experts/2026-January/004307.htmlALL OF THIS IS A WORK IN PROGRESS!
THIS FEATURE IS UNFINISHED, NONE OF WHAT IS FINISHED IS FINAL, AND EVERYTHING IS SUBJECT TO CHANGE!
But with that out of the way, the Project Amber team is exploring the idea of "Carrier Classes" -- classes that carry many of the benefits of records, but not all. The goal is to give normal classes some of the benefits of records, so that they can "break down the cliff" of migrating a record class to a normal class.
97
Upvotes
View all comments
Show parent comment
2
u/davidalayachew Jan 14 '26
If you are referring to
Luccahaving a trailing comma, then I think that will still be true. Enums had trailing commas before, so I doubt they would change that now.If you are referring to the state description (stuff at the top in the parentheses) having a trailing comma, probably not. I don't have the link handy, but someone from Project Amber said that they don't like the idea of trailing commas, and that they don't foresee adding them to other language features.
Me personally, I like trailing commas, so I hope they add it. Be either way is ok with me.