in reply to (tye)Re2: Will/Can Perl 6 clean up the bit-wise operator precedence mess?
in thread Will/Can Perl 6 clean up the bit-wise operator precedence mess?
Your reasons for doing this are somwhat bogus -- in perl6, one of the new operators (that you're ignoring in the table, so it's reasonable to overlook them) is a boolification operator, so you don't have to abuse !. Simply write ?$expr == ?$cond. Also, you could define a new operator, say infix:ile (for Is Logicly Equivlent To):
(This uses theDamien's placeholder vars, which I'm not sure are in exactly as I've used them. I need to find time to read A6 again, more carefuly. Also, it may be possible to write this as...sub infix:ile is tighter(==) { ?$^a == ?$^b }
And rely on the compiler to coerce the arguments to bools.)sub infix:ile($a is bool, $b is bool) is tigheter(==) { $a == $b }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Will/Can Perl 6 clean up the bit-wise operator precedence mess? (silly)
by tye (Sage) on Mar 18, 2003 at 18:13 UTC | |
by theorbtwo (Prior) on Mar 18, 2003 at 18:30 UTC |