View Single Post
Old Jan 4th, 2006, 7:46 PM   #4
elford
Programmer
 
elford's Avatar
 
Join Date: Nov 2005
Posts: 35
Rep Power: 0 elford is on a distinguished road
Quote:
Originally Posted by Indigno
My programming teacher absolutely hates them. I find them dead usefull and a lot easier to set than loops. I asked him once and all he could come up with is "I dunno, I just don't like them."
For small programs, I can see why someone might find them easier than loops, but if you're doing a project of any decent size (even as small as 100 lines), your code becomes an unintelligble mess with all the jumps that occur. Object oriented design principles avoid the goto for a very good reason.

Plus...I don't see how you can use them to get around loops. In a current project I'm doing, there's a data structure called a linked list, and i need a loop to do something on every node of the list, there is no way of not doing that without a loop.
elford is offline   Reply With Quote