On Tue, Jun 11, 2013 at 2:18 PM, Johan Tibell <johan.tib...@gmail.com> wrote: > If we truly believe that the instance is dangerous for users (and not merely > for people who don't understand floating point arithmetic on computers), > then we should add a deprecation pragma to the instance and discourage its > use. But what would the deprecation message encourage instead, for users to > write an explicit loop that tests against some lower/upper bound? It would > have the same problem as enumFromTo.
If the problem is increasing inaccuracy, then it likely wouldn't. E.g.: > last [0, 0.1 .. 20] 20.000000000000195 > last (range 0 20 0.1) 20.0 _______________________________________________ Haskell-prime mailing list Haskell-prime@haskell.org http://www.haskell.org/mailman/listinfo/haskell-prime