git » homepage.git » master » tree

[master] / archive / forums / hacker-news / raw / items / 649804.json

{"by":"jdp","id":649804,"kids":[649854,649900,649856],"parent":649507,"text":"Why is everyone jumping on this as a negative? Goto isn't inherently evil. Of course in most cases there is a construct that would be a better fit than goto, but it does have its uses. As far as readability goes, odds are a programmer isn't going to be jumping to a label 300 lines up, its used mostly to break out of nested loops and to simulate stuff like state machines. Check out <a href=\"http://david.tribble.com/text/goto.html\" rel=\"nofollow\">http://david.tribble.com/text/goto.html</a>","time":1244576724,"type":"comment"}