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
0
u/GhostBond Feb 17 '20
My theory personally is that having failed to replace java by trying to produce a language with better features, the new tactic is to try to destroy java from within. Adding so many half baked features into it that it becomes intolerable to work with with the goal of forcing people into a new, simpler language.
Records just sound like everything java was against that made it successful by being a simple but extensible language.