Old Man Yells At Cloud
Paul Rubin
no.email at nospam.invalid
Sun Sep 17 00:07:57 EDT 2017
Steve D'Aprano <steve+python at pearwood.info> writes:
>> concept integer / integer => integer_result
> That would be C, and C derived languages, perhaps?
Certainly not. Fortran, machine languages, etc. all do that too.
Haskell does the right thing and makes int/int a compile time type
error. Its integer division functions are div and quot.
Python 2 does something reasonable and Python 3 does something that is
also debatably reasonable. Switching from one reasonable thing to
another without a very good reason is called fixing things that weren't
broken. Python 2 wasn't broken in that area and didn't need to be
fixed.
More information about the Python-list
mailing list