5 ms·
You could just store your modified state to new variables though
by narrowtux 9y ago
You could just store your modified state to new variables though
- yorwba 9y agoOr you could just make copies of state you want to keep before mutating it. Both mutable imperative code and immutable functional code can emulate each other, so which one to choose largely depends on your preferences.
- junke 9y agoIn a live-coding session, how does the existing, running code knows that it should look at the new variables instead of the old ones?