merits of Lisp vs Python

greg greg at cosc.canterbury.ac.nz
Tue Dec 12 22:06:03 EST 2006


Juan R. wrote:

> I see no dinamism on your example, just static overloading.

There's nothing static about it:

   q = raw_input()
   if q == "A":
     a = 1
     b = 2
   else:
     a = "x"
     b = "y"
   c = a + b

There is no way that the compiler can statically
determine what the + operator needs to do here.

--
Greg



More information about the Python-list mailing list