does lack of type declarations make Python unsafe?

Mark 'Kamikaze' Hughes kamikaze at kuoi.asui.uidaho.edu
Tue Jul 1 16:20:17 CEST 2003


Tue, 01 Jul 2003 12:30:58 +0200, Anton Vredegoor <anton at vredegoor.doge.nl>:
> kamikaze at kuoi.asui.uidaho.edu (Mark 'Kamikaze' Hughes) wrote:
><discussing Java collections>
>>> Since int doesn't derive from object, this will probably
>>> fail:
>>> c.add(1)
>>  This is true, but it's completely unimportant.  It's annoying at
>>times, but it's an optimization for efficiency; there are good reasons
>>why Java is several times faster than Python at most tasks.  You can use
>>the primitive wrapper classes:
>>c.add( new Integer(1) );
> Interesting, first define it as unimportant and next focus un Java's
> strong points.

  Stop.  This is not a high school debate class.  You knew nothing about
Java but felt the pathological need to attack it with claims you found
on google.  Despite your cretinous behavior, I politely explained the
Java idiom and motivation for dealing with primitives differently.
You're just being an ass here.

 <http://kuoi.asui.uidaho.edu/~kamikaze/documents/plonk.html>

-- 
 <a href="http://kuoi.asui.uidaho.edu/~kamikaze/"> Mark Hughes </a>
"We remain convinced that this is the best defensive posture to adopt in
order to minimize casualties when the Great Old Ones return from beyond
the stars to eat our brains." -Charlie Stross, _The Concrete Jungle_




More information about the Python-list mailing list