[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Old Man Yells At Cloud

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