in reply to Re^4: Burned by precedence rules (== true)
in thread Burned by precedence rules
There's a logical operator for that: xor
can be written asif ( !$x == !$y) ) # bool($x) == bool($y) if ( !$x != !$y ) # bool($x) != bool($y)
if ( !($x xor $y) ) # bool($x) == bool($y) if ( $x xor $y ) # bool($x) != bool($y)
Unforunately, both sets have readability issues.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: Burned by precedence rules (== true)
by TimToady (Parson) on Dec 30, 2008 at 20:49 UTC | |
by tye (Sage) on Dec 31, 2008 at 02:14 UTC | |
by TimToady (Parson) on Dec 31, 2008 at 03:17 UTC | |
by tilly (Archbishop) on Dec 31, 2008 at 03:58 UTC | |
by tye (Sage) on Dec 31, 2008 at 03:47 UTC | |
Re^6: Burned by precedence rules (== true)
by demerphq (Chancellor) on Dec 31, 2008 at 00:01 UTC |
In Section
Meditations