On Thu, 2002-11-21 at 09:54, Luke Palmer wrote:
> I've always wanted to meet The Devil. :)

You're welcome :-)

> Honestly, I can't tell by looking at that what those are supposed to
> mean.  And I'm not putting any numbers that ugly into my Perl soup.
> Perl 6 is trying to I<decrease> obfuscation.

I was afraid of that. :-(

Although, I remember when I first moved from Assembler to C; back then
"0x" seemed pretty weird and ungainly.

> My opinion: don't allow floating point arbitrary radix.  It's uncommon
> enough that it could be done with a module.  It would be trivial with
> a grammar munge.

Hmmm... let's try this with some examples; choose some other punctuation
marks if you don't like '#' for exponent.

Which is quicker to understand out of:

(a)  0b1000000000000000000
(b)  2#1#14
(c)  2#1#1110
(d)  1<<14

I'm guessing most people would choose (d) followed by (c) or (b).

However (d) doesn't generalize to other bases; powers of 2 are almost
OK:

(f)  0x5000000
(g)  16#5000000
(h)  16#5#6
(i)  5<<24

but others are just plain messy:

(j)  3#2000000000
(k)  3#2#9
(l)  2*3**9

-Martin

Reply via email to