Fork me on GitHub
#funcool
<
2018-08-22
>
mping11:08:43

how do I unwrap a monadic value? suppose I want to return a value instead of the wrapped one

mccraigmccraig11:08:42

depends on the monad @mping - with some you can unwrap with @, with others (e.g. promises in js) you can't unwrap

mping11:08:27

and how do I know what monads are deferrable?

mping11:08:47

or better yet, whats the rationale

mccraigmccraig11:08:48

i don't know if there is any defined way of telling

mccraigmccraig11:08:36

the rationale is generally whether it makes any sense for the value - you can't unwrap a js promise because doing so would require blocking the single thread leading to deadlock

mping11:08:21

I see, thanks!