4 ms·
Don't mutate data structures from within a closure :)
by tumult 17y ago
Don't mutate data structures from within a closure :)
- blueag 17y agoWhy shouldn't I mutate local data structure?
- tedunangst 17y agoEven if you're not mutating the state, you may be interested in knowing what it is.
- loup-vaillant 17y agoJust look at the definition of your closure. If you didn't mutate the state since then, well, it hasn't changed. Some debuggers even allow you to "travel back in time", so you can easily "debug" the definition of that closure.