2 ms·
Why do you care what order your functions run in Haskell? Seems to me you want them to run as late as possible and no sooner.
by greyfade 17y ago
Why do you care what order your functions run in Haskell? Seems to me you want them to run as late as possible and no sooner.
- loup-vaillant 17y agoHe doesn't. What he really cares about is memory consumption, especially stack consumption. Order of execution can influence that a lot: unevaluated chunks may hold quite a lot memory, and their evaluation in normal order may overflow the stack (in most implementations). These problems are called "lazyness leaks". This is why he still cares about order of evaluation.