Annoying octal notation

Albert van der Horst albert at
Thu Sep 3 15:26:43 CEST 2009

In article <6031ba08-08c8-416b-91db-ce8ff57ae8e5 at>,
James Harris  <james.harris.1 at> wrote:
>So you are saying that Smalltalk has <base in decimal>r<number> where
>r is presumably for radix? That's maybe best of all. It preserves the
>syntactic requirement of starting a number with a digit and seems to
>have greatest flexibility. Not sure how good it looks but it's
>certainly not bad.
>  0xff & 0x0e | 0b1101
>  16rff & 16r0e | 2r1101
>Hmm. Maybe a symbol would be better than a letter.

Like 0#ff  16#ff ?

That is ALGOL68. It is incredible how many of it has become
vindicated over time. (Yes, nineteen hundred sixty eight was
the year that language was conceived.)


Groetjes Albert

Economic growth -- being exponential -- ultimately falters.
albert at spe&ar& &=n

More information about the Python-list mailing list