Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Should loop {} really loop indefinitely?

by grondilu (Friar)
on Oct 07, 2013 at 22:23 UTC ( #1057316=note: print w/replies, xml ) Need Help??


in reply to Re: Should loop {} really loop indefinitely?
in thread Should loop {} really loop indefinitely?

In Perl 6, when you want to idle indefinitely, you should probably write:

sleep(Inf);

Also, as mentioned above, replacing loop {} by a nop would be just as false as letting it loop forever. 0 * Inf is neither 0 nor Inf.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1057316]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2018-02-25 04:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (312 votes). Check out past polls.

    Notices?