2 ms·
Goto statements are a good example. It's easier to recite "goto is harmful" than to say "In most situations, other control structures are more expressive and ea
by johndcook 14y ago
Goto statements are a good example. It's easier to recite "goto is harmful" than to say "In most situations, other control structures are more expressive and easier to maintain than goto statements. However, there may be rare occasions, particularly in low-level system programming, where goto statements could be preferable."
"Don't parse HTML with regex" is good general advice, but no more an absolute than avoiding goto statements.
- Dylan16807 14y ago>rare occasions, particularly in low-level system programming, where goto statements could be preferable Or something as simple as "break 2;"