Psst—requesting comments on an idea I’ve been exploring: “A composable pattern for pure state machines with effects”
Conversation
Replying to
I love state machine. Gonna try to digest this tmr and hope I can be helpful!
Replying to
1
1
Yep! Very different design goals. :)
1
Show replies
Replying to
React components track input field content in state, so it's not a state machine. Is there an escape hatch in your method?
2
1
1
Can you elaborate? Not sure I understand the issue.
1
Show replies
Replying to
Single-effect returns push towards .CloseDoorAndTriggerAlarm and similar: I would be tempted by Set<Command> instead.
1
Replying to
You've basically encoded of generic functions `(inout State, Event) -> Command?` into a protocol. Elm's foldp is related.
2
FRP has it too; reactive-banana's mapAccum is equivalent if you simply filterJust the output Event. hackage.haskell.org/package/reacti
1
Show replies
Replying to
You might not care, but the Functioning/Broken state machine could probably be made generic on the inner machine.
2








