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 20 '26 edited Mar 20 '26
Worth having for whom? Programmers may find having these discussions amongst themselves worthwhile, but it's certainly not worth having for the language designers. Unless there's an overwhelming consensus, good product features (for any product) are not designed based on discussions around users' conflicting subjective opinions. The only signal there is the knowledge that different opinions exist, the products' designers already know that fact, and that fact is unhelpful.
But the only information here is 1. some people believe in this, 2. some people don't, 3. both groups are already served by the available features, and we already have this information. Since there is no new information that a discussion could offer, having the discussion can carry no value. It's not that your opinion has no value, but that we already know you hold that opinion and so repeating it isn't telling us anything we don't already know and have already factored in.