sys.argv and while loop

Frank Tobin ftobin at neverending.org
Wed May 8 17:05:10 EDT 2002


Sean 'Shaleh' Perry, on 2002-05-08, wrote:

> >   Otherwise, objects of different types always compare unequal, and are
> >   ordered consistently but arbitrarily.
>
> "if September is greater than the moon: do_this()" makes no sense to me
> either. I do not fault the language for failures of programmers (-:

Weak argument.  If you're going to have a stronly typed language, then
comparing objects of differing types, or even similar ones without
something defined for their comparison, should be generally be a
TypeError.

Given your line of reasoning, why bother type-checking functions (e.g.,
making sure the correct signature is used?)?  We could just leave
uninitialized memory in the arguments' place and silently proceed on; it's
the programmer's fault for not giving the right number of arguments.

-- 
Frank Tobin		http://www.neverending.org/~ftobin/






More information about the Python-list mailing list