
11 Jun
2013
11 Jun
'13
5:33 p.m.
On Tue, Jun 11, 2013 at 2:18 PM, Johan Tibell
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