in reply to Re^5: Burned by precedence rules (== true)
in thread Burned by precedence rules
In Perl 6 we can use positive boolean context, which helps readability a little:
We can use junctions, which again helps the different case more than the same case:if ?$x == ?$y {...} if ?$x != ?$y {...}
or if you prefer:if not $x ^ $y {...} if $x ^ $y {...}
That's probably enough ways to do it...if !one($x,$y) {...} if one($x,$y) {...}
In Section
Meditations