Hacker News new | past | comments | ask | show | jobs | submit login

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?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: