in reply to Re: Boolean counter?
in thread Boolean counter?
I agree that the XOR solution is perfectly correct, but why use that instead of NOT? Isn't
$counter = ! $counter;easier to read? That said, I have to admit that I like the snazzyness of the in place ^= syntax. It is hard to get more concise than that.
- doug
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Boolean counter?
by ikegami (Patriarch) on Dec 07, 2009 at 18:37 UTC |