State Machines in Rust
For you who enjoying using state machines but wish they did even more and/or were embedded in each other (nested state machines!), check out this thing called State Charts!Here is the initial paper from David Harel: STATECHARTS: A VISUAL FORMALISM FOR COMPLEX SYSTEMS (1987) - https://www.inf.ed.ac.uk/teaching/courses/seoc/2005_2006/res...Website with lots of info and resources: https://statecharts.github.io/And finally a very well made JS library by David Khourshid
that gives you lots of power leveraging statecharts: https://github.com/davidkpianoWhile we're at it, here are some links to previous submissions on HN regarding statecharts with lots of useful and interesting information/experiences:- https://news.ycombinator.com/item?id=18483704- https://news.ycombinator.com/item?id=15835005- https://news.ycombinator.com/item?id=21867990- https://news.ycombinator.com/item?id=16606379- https://news.ycombinator.com/item?id=22093176My own interest in Statecharts comes from wanting/trying to use them for UI development on the web, think there is lots of value to be had and time to be saved by using leveraging it.