3 ms·
There's nothing at all wrong with state (i.e. variables) in programs - relatively few programs don't use state. The issue is with UI modes ... reusing the same
by damian2000 12y ago
There's nothing at all wrong with state (i.e. variables) in programs - relatively few programs don't use state. The issue is with UI modes ... reusing the same UI which means two different things according to the mode its in.
- shoyer 12y agoBy "state in general", I particularly meant mutable or nonlocal state in general. There is obviously nothing wrong with using variables. To restate my analogy: the problem is when you can run the same function twice with the same input and get a different result. Or when the same variable can mean two totally different things depending on some external context.