But mutable state, that's another thing as it's harder to test, to reason about and leads to more bugs. It's not evil, it just has some drawbacks.
Code that you have to use a debugger to reason about just isn't as good as code you can reason about without one.
But mutable state, that's another thing as it's harder to test, to reason about and leads to more bugs. It's not evil, it just has some drawbacks.
Code that you have to use a debugger to reason about just isn't as good as code you can reason about without one.