|
|
|
|
|
by tel
4161 days ago
|
|
Strictness can always embed laziness---this is sometimes an argument for the natural superiority of strictness---so long as you have lightweight lambdas. Thus, in OCaml you'll see a lot of thunk () = long_computation
effectively. Is that syntactic noise enough to disable the advantages of laziness? Actually, maybe! |
|
And vice versa, although I think embedding strictness in laziness is probably more syntactically heavyweight.
http://h2.jaguarpaw.co.uk/posts/strictness-in-types/
> Is that syntactic noise enough to disable the advantages of laziness? Actually, maybe!
Hmm, if that's the case then it seems that
is enough to disable the advantages of monads! :)