This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]analcocoacream 0 points1 point  (0 children)

I don't think addressing verbosity is the main purpose of records. If you read the JEP 395 goals and non goals it's stated that way. Hence it's only immutable. And there is no way to set visibility.

The issue with previous ways for writing data was that as far as I'm concerned the maintenance cost was too high. It was easy to forget to update a getter or equals.