Re: voting on GOTO
- Posted by gshingles <gshingles at gm?il.c?m> Jun 04, 2008
- 813 views
Jim Brown wrote: > > It is possible to check if a variable is uninitialized. The recommended way > to deal with for loops is, if you must jump into a for loop, check if the > variable > is uninitialized and jump to a label that is right before the the beginning > of the for loop statement to continue iteration. > Jumping into for loops is discouraged, however. That sounds scary. But I vote yes, I'll just probably never use a goto. It may have unforseen benefits and the problems are well known (and therefore avoidable). Gary