Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I hate to say it but you are using goto.

Goto is used often in C parsers for a reason, because it is easier to reason that way when you're validating something rather than using deeply nested branches. People shit on goto because of dijkstra's paper but few people have even read that paper and fewer even know that it is the origin of "x considered harmful" meme.

Goto is a boon. Anytime people use exceptions like how you are you're just admitting you're itching for a goto and your language doesn't provide it. And thus you shouldn't clutch your pearls when others use it in c.



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

Search: