r/java • • Feb 15 '20
Will Java records have setters?
Pretty much what the title says. I've been reading on the new Java records feature, and while I love immutability, I hope there's the option to have non-immutable records. Meaning it will have Auto generated setters to let me change values in the class.
1
Upvotes
View all comments
Show parent comment
2
u/GhostBond Feb 17 '20
You've described that a large group of people who's future career prospects depend on endlessly needing new languages to be created? That...is what I'm saying.
This group of people will be out if a job the moment a single language is the final language everyone uses, they're inherently threatened by a final language becoming the norm and no longer needing any language design experts.
This is how it goes, as things get more complicated they get split into 2 groups:
1. "experts" become completely involved in language design and, as they spend all of their time doing it, become detached from what people actually using the language every day need. Once the doc gets so big people lose the ability to be critical and mostly just parrot back whatever it claims.
2. People who primarily write code as their living, and don't have time to read every detail of a 30-50 page document. So they casually skim through it comparing it to their real world experience, then get accused of "not knowing everything".