3 ms·
When immutability is optional, you can no longer rely on it to reason about the program. Specifically, you have to verify that any two pieces of code you're wor
by prodigal_erik 16y ago
When immutability is optional, you can no longer rely on it to reason about the program. Specifically, you have to verify that any two pieces of code you're worried about actually don't interact, because you no longer have a guarantee that they can't. I think a lot of restrictions are like this.
Edit: To quote a great comment on the article,
> Invariants make software more reliable. Weaker languages have stronger invariants. There’s less stuff to test.