Re:Avoid getters and setters whenever possible
by MrBuddyCasino on Thursday March 22, 2018 @07:55AM
(#16647783)
Thats the right answer. Have immutable classes with constructor-injected fields, and getters. In Java Lombok makes this scalable to many members using the builder pattern, and in Kotlin its a non-issue anyway.
[ Parent
| on HN ]
There are no comments on this comment yet.