|Just another Perl shrine|
Re^3: Bit operations for beginnersby BrowserUk (Pope)
|on Jun 28, 2005 at 01:05 UTC||Need Help??|
p xor q === [something very long]
Hell's teeth! You weren't kidding.
I remember xor as (p and not q) or (q and not p) and it's been something like 30 years since I played with nand and nor expansions, so I expanded that:
Then it struck me that ((x nor x) nor (x nor x)) is x, which reduces it to
It's certainly more digestable (just :), but are there any other reductions in there?
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
The "good enough" maybe good enough for the now, and perfection maybe unobtainable, but that should not preclude us from striving for perfection, when time, circumstance or desire allow.