Where to find 'Real' programmers online?

There are places a goto is the only way, but it is a tool.
1) gotos are 100% avoidable, and hence not the only way.
2) From the point of view off efficiency, they are probably better code.
3) Where "while" and "for" are natural, better to use them.
4) better a "goto" than forced "while" or "for" with tricks for avoiding "goto".
5) I would say that a "while", a "for" and similar are more a "tool" than a "goto".
 
1) gotos are 100% avoidable, and hence not the only way.
2) From the point of view off efficiency, they are probably better code.
3) Where "while" and "for" are natural, better to use them.
4) better a "goto" than forced "while" or "for" with tricks for avoiding "goto".
5) I would say that a "while", a "for" and similar are more a "tool" than a "goto".
1) I disagree.
2) I disagree.
3) I disagree.
4) I disagree.
5) I disagree.

Save the GOTO!
 
1772545301424.png
 
In C you have no real choice. You need goto to jump out of nested loops and you need it to skip to a cleanup section at the end of a function.

Both would be easily avoided with language constructs but alas they are not.
 
Back
Top