in reply to Re: (tye)Re: 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?
At first, it made sense to me to get the bit-wise operators finally grouped together and also get the logical operators finally grouped together. Plus, I'd been recently surprised by the rather tight binding of !.
But ! is also useful for extracting a Boolean value from a possibly-non-Boolean value. And since we don't have operators for "is logically equivalent" nor for "is not logically equivalent", it can be convenient to write, for example: if( ! $expr == ! $cond ) { Also, we do have negated versions of all of the comparison operators so there isn't much need for: if( ! ( $value == $expr ) ) { So I realized that this change wasn't going to fly.
But the main point of my proposal was the bit-wise operators (hence the title). I snuck the change to ! into the table but didn't mention it anywhere. And now I'm sneaking it back out. q-: Sorry for the confusion.
It does make some (though not a lot of) sense to put ! in with the other unary operators.
- tye (but my friends call me "Tye")
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (tye)Re2: Will/Can Perl 6 clean up the bit-wise operator precedence mess?
by theorbtwo (Prior) on Mar 18, 2003 at 02:11 UTC | |
by tye (Sage) on Mar 18, 2003 at 18:13 UTC | |
by theorbtwo (Prior) on Mar 18, 2003 at 18:30 UTC |