Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: GOTO considered (a necessary) evil?

by atcroft (Abbot)
on Jul 15, 2002 at 14:41 UTC ( #181793=note: print w/replies, xml ) Need Help??

in reply to GOTO considered (a necessary) evil?

I know of at least one general discussion on using GOTO (Would you use 'goto' here?), although I would guess there are likely more buried around here somewhere.

I can see your use for it, but would be concerned that the way you coded it could perhaps cause an endless loop (although I will assume there is additional code that was excluded from the example to prevent this). To me, though, both are about equally as readable.

Just my opinion, though, and I look forward to seeing the responses of others regarding the issue.

Update: Actually, looking at both solutions, both tend to suggest that a continuous loop might be possible (or am I reading those wrong?).

  • Comment on Re: GOTO considered (a necessary) evil?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://181793]
[Discipulus]: I miss a bit the sunny balconny of my previous flat.. but since june to september is better facing north
[Corion]: Discipulus: Yeah, I can see that reasoning :) But spending 5 minutes in the sun today quite improved my mood :)

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2018-03-21 11:30 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (267 votes). Check out past polls.