Hacker News new | ask | show | jobs
by titanix2 2768 days ago
> Instead I recommended a complicated flag based system that was probably unnecessary.

That's the trigger for me: after more than one flag and the complex states involved, I may refactor the code using goto because it can actually be a cleaner solution. Programmers need to be less dogmatic about this case.

1 comments

Sounds like a state machine implementation might work. Hard to say in the abstract.