in reply to Re: RE: RE: Adding 2 + 2
in thread Adding 2 + 2
So nearly...
22 is a shorthand for 2x2, which is a special case, since the exponent equals the mantissa. It's only equal to 2+2 by coincidence, though, or rather, due to the fact that 2 enumerates the number of arguments taken by binary (!=base 2) addition. There's nothing terribly pathological about any of this. The result (which I understand Larry wants allowed by Perl 6) that 00=1 is really pathological.
And I may be just a novice, but how about:
sub addtwoandtwo { 2+2 } ?
Tiefling (utter novice)
Thanks for the downvotes! Feel like telling me what's wrong?
22 is a shorthand for 2x2, which is a special case, since the exponent equals the mantissa. It's only equal to 2+2 by coincidence, though, or rather, due to the fact that 2 enumerates the number of arguments taken by binary (!=base 2) addition. There's nothing terribly pathological about any of this. The result (which I understand Larry wants allowed by Perl 6) that 00=1 is really pathological.
And I may be just a novice, but how about:
sub addtwoandtwo { 2+2 } ?
Tiefling (utter novice)
Thanks for the downvotes! Feel like telling me what's wrong?
In Section
Cool Uses for Perl