Sharpening comparative concepts (was: Java vs Python)

James Graves ansible at
Tue May 23 15:58:12 EDT 2000

Cameron Laird <claird at> wrote:

>Python has genericity built-in--right?  Is
>that exactly the point here, or is there some-
>thing more or less to it?

Well, since you don't have static type checking, you don't need
genericity.  The concept doesn't even apply to Python, which is
dynamically typed.

Static typing can catch many programing errors at compile time.

Dynamic typing can only catch errors at run time.

Java is statically typed, though it lacks genericity.  Of course, you
can get around that by casting.  But if you do it much, you're back in 
the dynamically-typed boat.

In my opinion, you're better off just sticking with Python.  Or if you
really want static typing done well, go with something like Eiffel (good
multiple-inheritance, genericity, data-hiding, Design-by-Contract).

Have fun,

James Graves
Free Speech Under Attack in the UK:

More information about the Python-list mailing list