3 ms·
> 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 stat
by titanix2 8y 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.
- simonh 8y agoSounds like a state machine implementation might work. Hard to say in the abstract.