Hi everyone, I developed an interesting library Polystate: Composable Finite State Machines
Since I only have experience in haskell and zig, I'm curious if there are other languages or libraries with similar implementations?
replies(6):
Since I only have experience in haskell and zig, I'm curious if there are other languages or libraries with similar implementations?
It has a completely type-safe finite state machine, and it does not require additional programming conventions.
It relies on a special monad: Mcbride Indexed Monad, which can model uncertainty in terms of type.
Are you using this monad here?
Here is a concrete ATM demo https://github.com/sdzx-1/typed-fsm/tree/main/examples/ATM