David Hamilton
07/02/2024, 6:32 AMRaise
, including its interactions with Either
and Effect
. This is what I have so far.
• Are there any errors (no pun intended)?
• What's missing?Alejandro Serrano.Mena
07/02/2024, 6:47 AMAlejandro Serrano.Mena
07/02/2024, 6:50 AMEffect
anymore, so I would suggest to remove it
• the case of fold
is actually closer to either
than going to the happy path. With that I mean that all the rest of operations "stay" in the Raise
context but fold
is used to "escape" it by stating how to deal with each case
• I'd be awesome if you could also add RaiseAccumulate
to the mix, and operations like zipOrAccumulate
or mapOrAccumulate
to go thereDavid Hamilton
07/02/2024, 7:16 AMEffect
!
Worth experimenting with representation of fold
- it's a balancing act of accuracy vs clarity 😄
@Alejandro Serrano.Mena Happy to add you as a collaborator, so you can update / use in docs. It's currently in Lucid - DM me with your email and I'll try to set up the sharing.David Hamilton
07/02/2024, 7:18 AMfold
is in Fold.kt
not Raise.kt
! But still in raise
package. Hmmm... 🤔Alejandro Serrano.Mena
07/02/2024, 7:25 AMRaise
file became too long and it was divided into several ones 😕simon.vergauwen
07/02/2024, 8:44 AMEvgenii Laskovenko
07/03/2024, 10:34 AMEffect
anymore"? I have several projects where Effect
is the core utility concept. What is your vision of modeling effects in code? I assume that it can be using direct suspend
functions with the Raise
context?Alejandro Serrano.Mena
07/03/2024, 10:35 AMRaise<E>.() -> A
Alejandro Serrano.Mena
07/03/2024, 10:35 AM