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

error conditions when you don't have exceptions:

    goto *errOrSuccess;
is a pretty normal one. This basically allows you to emulate a "finally".

State machines are another big one, which look much nicer with computed goto than a switch statement.






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

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

Search: