https://kotlinlang.org logo
#arrow-contributors
Title
# arrow-contributors
y

Youssef Shoaib [MOD]

07/28/2023, 8:51 AM
Would a
inline fun Either.getValue
et al inside Raise be something that Arrow would consider? It would allow using
by
as
bind
basically, so it might look nicer when giving names to Eithers, Options, etc. Or is it not worth it especially because the vision is Raise everywhere?
r

raulraja

08/02/2023, 6:37 PM
we used to have at some point monad .bind with
by
but it was limiting not and finally you are right, the vision is to just have raise if you need it, but we still need context receivers for that. Assuming context receivers will be stable at some point I think it's not worth it but other may find this useful. Many users make heavy use of either.bind