19 ms·
Thanks. I wonder why people don't correct their text as soon as they notice how it renders. > You can't really predict how something will actually execute, tha
by jolmg 7y ago
Thanks. I wonder why people don't correct their text as soon as they notice how it renders.
> You can't really predict how something will actually execute, that's left to the language to decide.
If this is referring to order of evaluation, it's better to think that it's up to the code to decide, not the language. In a function application/call like:
f a b c
it is f, not Haskell, that will decide in what order a, b, and c will evaluate by the way in which it uses them. Haskell, the language, merely doesn't force the evaluation of arguments before evaluating a function.