2 ms·
Laziness is just the default (and most likely to terminate) evaluation strategy. You can use a number of techniques (the simplest being Bang Patterns) to enfor
by wyager 12y ago
Laziness is just the default (and most likely to terminate) evaluation strategy.
You can use a number of techniques (the simplest being Bang Patterns) to enforce non-lazy evaluation strategies (including strict evaluation, parallel evaluation, sequential evaluation, etc.).
However, there are very few activities where Haskell's laziness will cause disruptive timing variations. Any language that you might use instead of Haskell is probably heavily heap-oriented, and likely garbage collected, which means that you're already dealing with unpredictable timing variance.