> : It's rare enough to need bitwise things in Perl 5 (outside golf). I'm > : hoping that it'll be even rarer in Perl 6, as better interfaces are > : designed for the things which at present require flipping individual > : bits. > > I almost wonder if it's wrong to waste ~ on it... > > That would be an argument for b| and b&, I suppose.
That looks like about the best. When rare things get too punctuation-heavy, people start to get really confused. What I'd expect is that a lot of what's now done bitwise could be done with overloading of superpositions (combining flags and such, although in a lot of cases & and | would be swapped. Then again, it always seemed odd that you combine two flags with | to turn them both on). There could probably be a bitwise type that would overload superpositions to do bitwise math instead... my Bitwise $a = 1; #woohoo, $a and $b are no longer magical! my Bitwise $b = 3; print $a & $b; #prints 3 So if you really need to do a lot of bitmath, you use the special types, and otherwise you can be barely aware that they exist. sysopen($handle, $filenmae, O_CREAT & O_RDRW); -- Adam Lopresto ([EMAIL PROTECTED]) http://cec.wustl.edu/~adam/ "We've secretly replaced the dilithium with Folgers Crystals."