Re:What Is Good About Haskell?
by jolmg on Thursday October 03, 2019 @12:37PM
(#21148900)
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.
> 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:
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.