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

I can understand the use as a labeled jump for loops, that's handy. Are there other cases where this is useful? I'm thinking along the lines of things like Quercus.



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?




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: