Reading @a_hoverbear's post on state machines.
https://hoverbear.org/blog/rust-state-machine-pattern/#three-state-two-transitions …
Now wondering: what if From/Into impls would be possible for enum member -> member. Could that be an angle to make state machines easier to write?
-
-
Also explore `TryFrom` for handling failure states! Also explore APIs using `impl Into<X>`! :) Thanks for the link! Let me know if you want to chat about this!
-
Maybe I'll take you up on that! For now I want to explore it a bit further and try it out for a small parser so I get a feel for it. But suspect it'll work nicely
End of conversation
New conversation -
-
-
Now you have had me thinking about Statecharts and such in Rust for two days now! How're things coming?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.