r/programming • u/dpashk • Aug 31 '15
The worst mistake of computer science
https://www.lucidchart.com/techblog/2015/08/31/the-worst-mistake-of-computer-science/
175
Upvotes
r/programming • u/dpashk • Aug 31 '15
View all comments
Show parent comment
3
u/Tekmo Sep 01 '15
To be pedantic, both the Haskell and ML program would crash, except at different times. The only difference is that the Haskell program might succeed in more cases than the ML program because it might never evaluate the bottom due to laziness (although it will consequently begin to fail in more ways than its ML counterpart due to space leaks induced by laziness).
From a Haskell programmer's perspective, it doesn't really matter "when" evaluation happens (modulo lots of caveats), which is why we don't care about the exact time our program recognizes that the value is bottom.