Python is Considered Harmful

Alex Martelli aleax at aleax.it
Tue Oct 28 18:44:57 EST 2003


Jerzy Karczmarczuk wrote:

> Alex Martelli wrote:
>> Jegenye 2001 Bt wrote:
> 
>>>So this was actually like the famous equation
>>>"9*6=42"
   ...
>> Do you mean, implicitly using base 13?  I know of no programming
   ...
> In Icon you can write 13r9 * 13r6. Icon is a decent, although weakly known
> language, without any "particularly 'powerful' macros", which permits to
> choose the base of literals. Nothing horrible.

Yes, I used to love Icon (the coroutines and backtracking and all, cool!)
but notice it uses EXPLICIT indications of non-10 base.  There is, indeed,
nothing at all horrible with that.

Besides, the problem is not with 9 or 6, which happen to have the same
value in either base 10 or 13:-).  The problem is with that result...:)


Alex





More information about the Python-list mailing list