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) {...}
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^7: Burned by precedence rules (eqv)
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 |
In Section
Meditations