5 ms·There's obviously no better way to write state machines...by anon-3988 3y agoThere's obviously no better way to write state machines...parasti 3y agoCan you elaborate?msla 3y agoIf they could, they wouldn't have used sarcasm.gdprrrr 3y agoNot OP, but in functional languages, state machines are often simply a function (State, Input) -> State