3 ms·
Getters make sense for mutable objects. In a lot of cases, immutable objects are superior: simpler to reason about, have less code, and cost as much as mutable
by nine_k 7y ago
Getters make sense for mutable objects.
In a lot of cases, immutable objects are superior: simpler to reason about, have less code, and cost as much as mutable objects.