Re: New keyword added: continue
- Posted by c.k.lester <euphoric at c??ester.com> May 28, 2008
- 762 views
Kat wrote: > c.k.lester wrote: > > Maintainability of code is of utmost importance. Using goto is dangerous! :) > Why are these two blocks so different that you call the 2nd one "dangerous" > ? > for loop = 1 to x do > -- code > if x = blah then goto next end if > -- code > :next > end for > > for loop = 1 to x do > -- code > if x = blah then next end if > -- code > end for Because adding loops therein could be problematic. > And ye who didn't know you were using code containing "exit", > how were you "maintaining" that code? I'm not maintaining that code (they are in libraries I am including), so I don't care. :)