Questions tagged [lazy-evaluation]
Use this tag for questions about the lazy evaluation strategy, by which an expression is evaluated only when its value is needed.
4 questions
1
vote
0
answers
155
views
How to support single page applications in a language?
A single page application (SPA) is a website that prevents refreshing (i.e. reloading fundamental scripts and certain resources) on page redirection in the same domain. Typically a SPA consists of a ...
2
votes
1
answer
282
views
Is it practical to use binary trees as a sequential container?
Contiguous arrays do not mix with lazy evaluation. That's why Haskell doesn't have contiguous arrays as a primitive type, and why even GHC has a poor API for them. As such, I sought for a workaround.
...
1
vote
1
answer
288
views
Has there been languages that explicitly document the order of evaluation of high order functions on enumerables?
There are high order function on lists, such as map, find, reduce, in some languages. If the result of one such function is piped into another such function, there are multiple possible evaluation ...
12
votes
1
answer
770
views
What are the disadvantages of lazy languages?
I understand there are some advantages of lazy languages like Haskell. For example, one can easily write/use an infinite list without worrying about it being evaluated eagerly. I heard there are other ...