On 22 September 2010 20:26, Ernest Friedman-Hill <[email protected]> wrote:
> It's as dangerous in Java as it is in other languages. Just the other day I
> helped somebody on JavaRanch who spent days trying to figure out why their
> loop never ran:
>
> boolean loopWhileFalse = false;
> while (loopWhileFalse = false) {
> ...
:) "Through tattered clothes, small vices do appear."
I always used to preach that one shall not compare booleans to true or false
when writing a condition.
-W
