Perl is worse! (was: Python is Wierd!)

Erik Max Francis max at alcyone.com
Fri Jul 28 20:23:38 EDT 2000


Steve Lamb wrote:

>     Might that be exactly why I say that data is data and that the
> operation
> determines the type?  :)

Yes.  But that is the way Perl does it, and Perl is a weakly typed
language, because the type is enforced by the choice of operators, not
an intrinsic property of an object.

Python, however is strongly typed, and the type of an object _is_ one of
its intrinsic properties.  1 is not the same as '1'.

Python is acting like a strongly typed language should.  Your insistence
that it should be following Perl's lead on this doesn't make any sense,
because Python is not weakly typed like Perl.

What you say is true -- _for Perl_.  It is _not_ true for Python, no
matter how much you would like it to be.  And it shouldn't be, either,
as Python is not like Perl.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/  \ One completely overcomes only what one assimilates.
\__/ Andre Gide
    Fat Boy and Little Man / http://www.fatboyandlittleman.com/
 Watch Fat Boy and Little Man go about their antics.



More information about the Python-list mailing list