3 ms·
When you're writing something that's modeled as a state machine, it's easier to use goto to jump between the states, rather than simulating it with a while loop
by dmoney 17y ago
When you're writing something that's modeled as a state machine, it's easier to use goto to jump between the states, rather than simulating it with a while loop, state variable, and case statement. Making the program's behavior conform to a flow chart would probably be about the same.
I wonder: would goto have a better reputation if flowcharts were used more often?