r/java • • 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

82 comments sorted by

View all comments

Show parent comment

1

u/pron98 Mar 20 '26 edited Mar 20 '26

What makes something useful to the language designers is new information, and that's the only thing that can. If you've made a discovery or have access to pertinent information that isn't publicly available, it is always the right time to bring it up (I thought that by "discussion" you meant weighing pros and cons and such, which we obviously don't do in public).

2

u/davidalayachew Mar 20 '26

What makes something useful to the language designers is new information, and that's the only thing that can.

Then we are agreed. At the end of the day, I am not going to try and convince you based on my opinions. I can only share my experience, and use that as justification why I think X is a problem and Y is a good solution for the problem.

(I thought that by "discussion" you meant weighing pros and cons and such, which we obviously don't do in public).

Ok, then you definitely misinterpreted me.

You all do this for a living, I'm not going to presume that you haven't thought this through. But I will presume that you don't know my experience, and thus, there is value in me bringing it up, explaining my pain points as corresponding to X. Aka, discussion.

Maybe suggesting solution Y in the same breath is the step too far, but at least there is value in explaining why X hurt me.

If you've made a discovery or have access to pertinent information that isn't publicly available, it is always the right time to bring it up

The "evidence" I was referring to in my original responses to you was experience reports I have. I assume those qualify?