Psst—requesting comments on an idea I’ve been exploring: “A composable pattern for pure state machines with effects”
Conversation
I suggest dropping the optional and allowing the Command associatedtype to be an Optional when necessary.
1
Replying to
you're welcome! Very curious about what you have in mind for encoding safe transitions into types.
1
Will return to that eventually I hope. :)
Replying to
at first glance it feels like it would require dependent types which Swift obviously doesn't have...

