r/functionalprogramming • u/metazip • Jun 28 '24
Question Does Lazy Evaluation have a Future?
In Haskell it is used for deforestation to keep the stack low. But after some experience with it, it is simply a problematic concept.
UPDATE: What do you think about a concept with buds?
Buds that change from unbound to bound via a side effect,
which can be checked beforehand with isbound. Wouldn't a concept with buds be much more flexible.
2
Upvotes
View all comments
Show parent comment
-1
u/metazip Jun 28 '24
It can't handle side effects at all. It seems as if there shouldn't be any side effects, because then it is no longer guaranteed that lazy evaluation will produce a correct result. In addition, the data has an identity problem - you can't check references for identity.