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

Re: Why is the null while-loop condition expression true?

by hexcoder (Curate)
on Mar 28, 2016 at 19:02 UTC ( [id://1158974]=note: print w/replies, xml ) Need Help??


in reply to Why is the null while-loop condition expression true?

The rationale might have been that in former art (in this case C) for (;;) { ... } was a common idiom for an infinite loop. While C did not allow an empty condition in a while loop, the canonical treatment of the loop condition in for and while in Perl might have led to this result. I think it is more consistent than in C.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1158974]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-25 16:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found