Hacker News new | ask | show | jobs
by wellpast 2649 days ago
And then there was Clojure...

   (defn average [numbers] (/ (apply + numbers) (count numbers)))

   (average [8.988465674311579e+307M, 8.98846567431158e+307M])
   => 8.9884656743115795E+307M
1 comments

But by then you are not comparing apples to apples. Those are Java BigFloats, and by that reasoning Java and any other language that has access to bigfloats also would do the correct thing.
But still relevant, no?

You could say that the “hard problem” mentioned has been removed by those abstractions.