Re: New keyword added: continue

new topic     » goto parent     » topic index » view thread      » older message » newer message

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. :)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu