2 ms·
When it surprises you. It is easier to reason about code when you know that values will not change - an immutable value cannot change so you don't have to worr
by netcraft 12y ago
When it surprises you. It is easier to reason about code when you know that values will not change - an immutable value cannot change so you don't have to worry about passing it around, using it in asynchronous processes, changing it without persisting the change, etc.