If Scheme is so good why MIT drops it?

greg greg at cosc.canterbury.ac.nz
Tue Jul 21 20:47:35 EDT 2009


>>Steven D'Aprano <ste... at REMOVE.THIS.cybersource.com.au> writes:
>>
>>>Besides, one can legitimately disagree that 2/3 => 0 is the wrong thing
>>>to do. It's the right thing to do if you're doing integer maths.

True, but the question is how best to decide whether the
programmer wants to do integer maths.

Deciding based on the types of the operands is okay in a
statically typed language. But it's asking for trouble in
a dynamically-typed language, especially where it's common
practice to use ints as a substitute for floats that
happen to have integer values.

EIBTI in this case.

-- 
Greg



More information about the Python-list mailing list