3 ms·
Except records are immutable and have getters and setters as builtins to replicate what we've been doing with Lombok. So enforces what I was saying.
by happymellon 8mo ago
Except records are immutable and have getters and setters as builtins to replicate what we've been doing with Lombok.
So enforces what I was saying.
- throwA29B 8mo ago>immutable >setters sigh
- brunoborges 8mo agoTo be clear, Records don't have setters. They are immutable.
- happymellon 8mo agoYeah, sorry, typo. Still they institutionalise getters, which is the opposite of what their argument was.
- tadfisher 8mo agoWell, they don't have "getters" either, they have accessors; x() instead of getX(). It's still bad, but at least it doesn't enforce JavaBeans conventions, which is where getters and setters actually originate [0]. 0: https://en.wikipedia.org/wiki/JavaBeans https://en.wikipedia.org/wiki/JavaBeans