Possible Duplicates:
Why is goto poor practise?
GOTO still considered harmful?
Hi,
I have read in many book that using goto is bad programming practice, why is it so?
thanks Yogesh
Possible Duplicates:
Why is goto poor practise?
GOTO still considered harmful?
Hi,
I have read in many book that using goto is bad programming practice, why is it so?
thanks Yogesh
using goto
is not bad as long as you know for what purpose you are using. use judiciously.
Original article by Edsger Dijkstra: http://userweb.cs.utexas.edu/users/EWD/ewd02xx/EWD215.PDF
Dijkstra and Wirth, proponents of structured programming, have critisized the use of goto
, and people started to think that goto
is plain evil, although it isn't always a case. There are situations when use of goto
results in cleaner code, like in error handling.