Hacker News new | ask | show | jobs
by userbinator 3715 days ago
That's the essence of a goto-based state machine (one of the few problems where gotos are the most natural solution), compared to the alternative of storing the state in a variable and doing an extra indirection every transition to "go to" the right one.