Re: Good Use of GOTO
- Posted by Jim Brown <jbrown105 at lin?xbuddhist?net> Jun 06, 2008
- 824 views
c.k.lester wrote: > > Jim Brown wrote: > > > > Perhaps you could cite the arguments (at least the ones you feel the most > > pertaint) > > and give your counter-responses. > > There are counter-arguments to all the arguments in each of those links. No > need to rehash them here... is there? I simply remain unconvinced. I read through all three links (the fourth one i visited was some stuff about DB and SQL...) There were no successful counter-arguments presented. The conclusion was always that goto was useful in making code nicer. > > > We keep hearing this, yet when CChris asked for modern examples of spagetthi > > code abuse from languages which do support goto (such as C), he got nothing. > > > > The burden of proof is now on you to show that this is the case.... > > <a > href="http://en.wikipedia.org/wiki/Spaghetti_code">http://en.wikipedia.org/wiki/Spaghetti_code</a> The wikipedia link explains the concept but contains no examples (as of the time of this posting). > I have no idea what this is saying: <a > href="http://sourcemaking.com/antipatterns/spaghetti-code">http://sourcemaking.com/antipatterns/spaghetti-code</a> It appears to describe the pattern, like the wikipedia link, but again has no real live examples. Java spagetthi code does not require the use of GOTO, and therefore does not count. > <a > href="http://www.reddit.com/info/6l7dr/comments/">http://www.reddit.com/info/6l7dr/comments/</a> > This last mentions PHP spagetthi code. Like the Java example, non sequtior - it does not apply. PHP doesn't have a goto statement.