3 ms·
And gained nothing except more verbose syntax. The goto spaghetti is still spaghetti whether you use "goto" or "switch".
by maskros 5y ago
And gained nothing except more verbose syntax. The goto spaghetti is still spaghetti whether you use "goto" or "switch".
- m_mueller 5y agoDisagree. You eliminate backward gotos except for the while loop, which is much more clearly communicating the way to extend the code (by adding more states or state transitions) to the next person taking over. I‘m not categorically against goto in certain contexts (like C based systems programming), but IMO backwards jumps with goto need to be eliminated.