4 ms·
> A better example would be if you had a counter hidden somewhere out of sight which counted the number of times you turned the key in your car, and introduced
by anamax 17y ago
> A better example would be if you had a counter hidden somewhere out of sight which counted the number of times you turned the key in your car, and introduced different behaviours for key-turning based upon that value.
Interestingly enough, every car does have something like that. (Think gas, maintenance, and repair.)
The real world does have mutable state.