Re:Facts about State Machines
by Joker_vD on Friday September 30, 2022 @07:35PM
(#33042095)
It's still C but arguably much more concise than a switch, wouldn't you agree?
[ Parent
| on HN ]
For large state machines sure. For smaller ones no. My point wasn't that enum is the only way to do it in C. Just a simple representation that is used in practice that I could explain in a single sentence.