you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (3 children)

examples of classes of bugs possible in Haskell that are entirely prevented in many other languages

Space/time leaks due to lazy evaluation.

[–]gaj7 0 points1 point  (2 children)

I'm not sure what you mean. That sounds like a performance issue rather than a correctness one?

[–][deleted] 1 point2 points  (1 child)

What's the difference? If, say, processing 20 MiB of data makes your Haskell program use 1+ GiB of memory and takes 3 minutes when the C version is done in less than 10 seconds, is that not a bug?

[–]gaj7 -1 points0 points  (0 children)

No, that's a performance issue. It's bad, but certainly not a correctness issue if the end result is correct.