3 ms·
I often pushed for immutable objects specifically for this reason. At construction time you guarantee the state of the object once, otherwise, as you said, comp
by jonhohle 5y ago
I often pushed for immutable objects specifically for this reason. At construction time you guarantee the state of the object once, otherwise, as you said, complexity doubles with each mutable property.