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
2
u/davidalayachew Mar 20 '26
Your responses are confusing me Ron.
I already agreed like 5 comments ago to drop the point because my suggestion doesn't make sense to consider now, but you seem to be taking issue with the "now" part of it. As if you are trying to assert that there is no further useful discussion to be had on the subject with the language designers.
As opposed to saying "Whether or not there is useful discussion, the problem this suggestion solves is lower stakes, and thus, other things trump it, and therefore, we won't have that discussion now"
(in the name of preserving the metaphorical oxygen in the room.)
Are you trying to say that you definitively know that there is no more useful discussion to be had on the matter with you all? You all being the language designers.
Like I said 5+ comments ago, I have plenty of evidence to present about the problems severity and the solution's effectiveness, but if the discussion doesn't make sense to have now, then I will hold off on that evidence until that time arrives. Because, even though I perceive the problem as more severe, I still do agree that it is lower stakes than other problems you all could be solving.
This Clean Code example was not an example of that evidence. It was merely me trying to point out that other people perceive this as a problem too. Since you seemed to disagree that anyone else even sees a problem here. It was me trying to demonstrate that the conversation is worth having (even if now is not the right time) by pointing to other people's attempts at solving the problem I was referring to.
And I had hoped that Clean Code's reputation of pointing out a valid problem but having a terrible (implementation of the) solution would communicate both that the problem is real and that the proposed solutions are insufficient. Essentially, me trying to prove that the discussion, when the right time arrives, will be worth having.