5 ms·
a common misconception.. haskell does not "auto-async" anything. Laziness is not Async. You explicitly provide instructions which expressions get turned into
by platz 8y ago
a common misconception.. haskell does not "auto-async" anything.
Laziness is not Async.
You explicitly provide instructions which expressions get turned into async expressions in Haskell.
- k_bx 8y agoI never stated anything remotely close to that :) What I've meant are: - either Haskell gives you API which is done "right", without any Async types. For example, `bracket` function - or runtime gives you lightweight threads by default, so you can just `fork myComputation` and it'll run in a lightweight thread which "just works" - or finally, in rare situations of interleaving different computations with complex dependencies, you just use the `async` library, which is not a special language construct but a library, which lets you "await" and all that