3 ms·
There's a lot of code that doesn't benefit from state machines at all. But when code does profit from a state machine, it's often easy to recognize from the ma
by perlgeek 14y ago
There's a lot of code that doesn't benefit from state machines at all.
But when code does profit from a state machine, it's often easy to recognize from the many 'if' statements that check several flags (like ' if (seen_input && !eof && ..)')