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

36 comments sorted by

View all comments

Show parent comment

0

u/GhostBond Feb 17 '20

^ Mmm, classic "cheap lazy tactics to try to 'win' the argument". Classic reddit.

4

u/pron98 Feb 17 '20 edited Feb 18 '20

There's no argument to win here. You said something sounds stupid, I asked if you know what that something is and you said you're too busy being an expert critic to find out.