4 ms·
I don't use immutable structures for speed (they're often slower), I use them because they can eliminate entire classes of bugs.
by Scramblejams 11y ago
I don't use immutable structures for speed (they're often slower), I use them because they can eliminate entire classes of bugs.
- matwood 11y agoThis. By making everything immutable by default, a program becomes much easier to reason about. If I can quickly see this variable is set here and since it is immutable it will never change, I can now quickly reason about other parts of the function.
- kentor 11y agoSame here. People are missing the point.