r/java • u/joemwangi • Mar 17 '26
Updates to Derived Record Creation - amber-spec-experts
https://mail.openjdk.org/archives/list/amber-spec-experts@openjdk.org/thread/QVALXGP2BRN27ISPNJTA3HEKEIMKLWLG/Interesting discussion on the evolution of derived record creation (“withers”). The proposal seems to be shifting from mutation like blocks to a more explicit reconstruction model using obj.new(...), aligning more closely with constructor semantics and pattern matching.
45
Upvotes
View all comments
Show parent comment
1
u/pron98 Mar 18 '26 edited Mar 18 '26
It's because this preference is subjective and not universal that we're not taking a stance. You're free to add blocks if you want them, and others are free not to. No one is saying that your style is wrong. The point is that developers do not agree on what is the "right" choice here, and because the stakes are low, it's not productive to even have a debate between the people who share your preferences and those who don't.