Just fixed an error with array[count++]= foo(); where foo() modified count, in effect writing stuff into the incorrect location.
Haskell's lazy evaluation would have prevented that.
Name:
Anonymous2014-07-14 1:15
Why would you ever make a non-parametric function modify some kind of counter variable?
Stop trying to market Haskell with your synthetic ``human errors'' that never actually happen to anyone with a brain. Haskell can't magically fix stupid and all your scenarios have been a severe case of stupid. This is ``put braces around one-liner ifs'' all over again.