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?
-
-
Reason why I was reading up on state machines: I am wondering how practical of a replacement they could be for parser combinators. Trying to find out a middleground between defining a full grammar and completely hand rolling all logic. Encoding transitions might be a good one.
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Hi. Have you seen this one?https://twitter.com/hillelogram/status/1243608940484734976?s=19 …
-
I haven't, thanks for sharing!
End of conversation
New conversation -
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.