in reply to Re (tilly) 2: Fear of Large Languages (was: "Would you use goto")
in thread Would you use 'goto' here?
(What, you had to click and find out what it did? Hrmmm... maybe goto is more maintainable from a knowledge standpoint.)
I had a large while loop that iterated over an array that was constructed earlier. I did some stuff, then had a set of if-then statements. Yes, I could've built this out to be a series of functions, but, as this was the meat of the script, didn't feel that was warranted. I did want to be able to "return" out of the first if-block and continue processing after the last else. So, I put a label up, called it DONE, and used goto quite liberally.
------
We are the carpenters and bricklayers of the Information Age.
Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 4: Fear of Large Languages (was: "Would you use goto")
by tilly (Archbishop) on Dec 06, 2001 at 23:09 UTC | |
by dragonchild (Archbishop) on Dec 07, 2001 at 00:57 UTC | |
by tilly (Archbishop) on Dec 07, 2001 at 02:58 UTC | |
by dragonchild (Archbishop) on Dec 07, 2001 at 18:46 UTC | |
by danger (Priest) on Dec 08, 2001 at 05:27 UTC | |
|
Re: Re: Re (tilly) 2: Fear of Large Languages (was: "Would you use goto")
by Anonymous Monk on Dec 06, 2001 at 22:33 UTC |