4 ms·
You should keep going with this and see how ergonomic it is when NextState can be one of many states. I tried implementing State Machines once with this method
by lewisinc 7y ago
You should keep going with this and see how ergonomic it is when NextState can be one of many states. I tried implementing State Machines once with this method and ended up wanting to use an `enum` for `State::NextState`. After a while it ended up being pretty unwieldy.