[Patches] import floatdivision # 1/2==0.5

Moshe Zadka Moshe Zadka <moshez@math.huji.ac.il>
Tue, 13 Jun 2000 07:29:31 +0300 (IDT)


On Mon, 12 Jun 2000, David Scherer wrote:

> This patch provides a way to make 1/2==0.5 optional without introducing any
> backward incompatibilities.  It provides a pseudomodule "floatdivision"
> that, when imported, changes the behavior of the importing script at compile
> time:
> 
> import floatdivision
> print 3/4             # 0.75

-1 on that. I don't like language to be dependant on modules: no "library"
can import this module, because it might break other code. On the other
hand, no "application" can import this module, because it might break
library code. Plus a general -1 on thrusting floating point in innocent
people's faces.

--
Moshe Zadka <moshez@math.huji.ac.il>
http://www.oreilly.com/news/prescod_0300.html
http://www.linux.org.il -- we put the penguin in .com