Re:Avoid getters and setters whenever possible
by ecshafer on Thursday March 22, 2018 @08:11AM
(#16647881)
You can use setters that return a reference to a new object with the updated says, using some copy and delete mechanism for immutability.
[ Parent
| on HN ]
There are no comments on this comment yet.