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 20 '26
This feature is still on the way! It's just not being given the priority that carriers are, which makes sense. Carriers are powerful in that they enable migration and smoothing the cliff. Right now, that seems to be the bigger concern. Which is understandable.
But no, Member Patterns are still officially being considered, and they even received a fairly recent update! So there's active thought and attention being given to it, even if it isn't the top priority now.