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?
-
Show this thread
-
As to *why* state machines are interesting: they feel much like an extension of enums. Enums enumerate various states. State machines enumerate the transitions *between* those states. I think if that were something a lang would help with it might be really nice.
2 replies 1 retweet 8 likesShow this thread -
Replying to @yoshuawuyts
Kirill M Retweeted Hillel
Hi. Have you seen this one?https://twitter.com/hillelogram/status/1243608940484734976?s=19 …
Kirill M added,
1 reply 0 retweets 2 likes
Replying to @62mkv
I haven't, thanks for sharing!
2:10 AM - 29 Mar 2020
from Berlin, Germany
0 replies
0 retweets
0 likes
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.