in reply to Re^3: Why is the null while-loop condition expression true?
in thread Why is the null while-loop condition expression true?
the idea of ever writing while(){} to mean… all the enclosed code is just for laughs because I never want it to run is even sillier.
Hm. That would mean if( 0 ) & while( 0 ) were silly also, yet the Perl sources, amongst many others, are littered with innumerable examples of both.
Countering a conclusion, because it happens to have been drawn by me, is the very definition of "silly".
In every other case empty parens () mean false; to deem while() to mean the opposite, is...; well, it starts with s and is somewhat stronger than "silly".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Why is the null while-loop condition expression true?
by soonix (Chancellor) on Mar 29, 2016 at 08:28 UTC |