3 ms·
You didn't have language enforced immutability. But you still could have convention enforced immutability. If you don't provide apis that mutate your objects an
by winstonewert 6y ago
You didn't have language enforced immutability. But you still could have convention enforced immutability. If you don't provide apis that mutate your objects and document that mutating is not supported, you get almost all of the benefits of immutability.