Re:OOSMOS, the Object Oriented State Machine Operating Syste...
by lectrick on Thursday November 05, 2015 @12:06PM
(#10514505)
Thanks for the clarification.
Also, constraint of side effects at the language level allows powerful things like... time-traveling debuggers (does GHC provide anything like this, btw? Because it probably could...)
One of the core principles of FP is about state. However, I believe it is to think very carefully about state and be very explicit about how you handle it rather than performing ad-hoc mutations. That often means avoiding state, but many problems require maintaining state.
State machines can be a great tool to be explicit about state management to the point that you can have a specification for how state behaves.