Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^2: Why is the null while-loop condition expression true?by BrowserUk (Patriarch) |
on Mar 28, 2016 at 22:12 UTC ( [id://1158981]=note: print w/replies, xml ) | Need Help?? |
I have to agree the infinitude of while () { ... } does seem a bit counterintuitive I agree with your reaction, but not your conclusion. With while(1){ doing the intuitively obvious, I can see absolutely no justification for equivalence between that and while(){ Seems most likely to be a bug that slipped through rather than a deliberate act; and remains because of some misguided backward compatibility justifiction; despite that no one in their right mind would code an infinite loop that way in order to save 1 character. A bug masquerading as a feature is my assessment. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|