Open GoogleCodeExporter opened 9 years ago
We should consider following Python's example
http://www.python.org/dev/peps/pep-0238/ and making "/" perform rational or
inexact
division for integers rather than the less common integral (rounding) division.
We
can provide the library "div" function (like Haskell) for integral division.
Original comment by adrianqu...@gmail.com
on 30 Apr 2009 at 11:17
This will be easier after handling #173 (operator methods).
We may be getting to a time where performing this fix is worth it. The reason is that the PorcE backend can actually do native unboxed double math and even use Long for "small" numbers and switch silently to BitInt when we are forced to. Using Long for small numbers could actually gain a bit of performance in lots of common cases like counting things.
Original issue reported on code.google.com by
adrianqu...@gmail.com
on 18 Apr 2009 at 3:02