[Python-ideas] PEP 335: Another use case
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu Oct 6 01:05:33 CEST 2011
Antoine Pitrou wrote:
> Mixing two different logics in the
> same programming language sounds like a recipe for confusion, because
> the semantics of control flow become context-dependant.
At least you would (or should) get an exception if you
try to branch on an indeterminate truth value. That's
better than choosing some arbitrary interpretation, which
is what happens at the moment when comparing NaNs.
--
Greg
More information about the Python-ideas
mailing list