Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: do/redo or for(;;): what's Kosher?

by ajdelore (Pilgrim)
on Jan 04, 2002 at 05:48 UTC ( #136178=note: print w/replies, xml ) Need Help??


in reply to do/redo or for(;;): what's Kosher?

Personally, I also prefer the  while (1) construct for an infinite loop. I think that this is because it is commonly used in python, my former language. :) But, it seems to make more sense than a plain block, and looks nicer than an empty for statement.

I also thing using next or last statements in a while loop is more useful and makes more sense than redo in a plain block.

Why hasn't anyone suggested using a goto statement yet? After all, TMTOWTDI... lol...

# Anthony DeLorenzo ajdelore

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://136178]
help
Chatterbox?
[holli]: yes, that' s the one.
[holli]: *shudder* electronic music? i'm more for the opposite :)
[marto]: good music, is good music, ignore the genre :P
[Corion]: marto: Thank you, reminds me of good times ;))

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (10)
As of 2017-11-18 19:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (277 votes). Check out past polls.

    Notices?