4 ms·
Lack of defensive copying (widespread e.g. in Java) may alone be worth it, performance-wise. Also, shared data are much easier to reason about if it's immutabl
by nine_k 9y ago
Lack of defensive copying (widespread e.g. in Java) may alone be worth it, performance-wise.
Also, shared data are much easier to reason about if it's immutable (not necessarily even in a concurrent execution context).