Replies: 2 comments 1 reply
-
|
Hey @petejodo, In Kotlin with Arrow I would suggest using Alternatively you can use |
Beta Was this translation helpful? Give feedback.
-
|
I'd personally go with context(_: Raise<Exception>) fun foo {}Which I believe to be the most idiomatic. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I couldn't find anything on this topic. Title covers it pretty well, basically I'm looking to determine what the arrow devs and community typically do for a function like
I ask this because different communities do different things. For example, the Rust community uses
Result<Err, ()>(Either) which I personally prefer but the naming of "Result" is better suited towards that thanEitherand then in Haskell they useMaybe(Option). What does the kotlin/arrow community prefer?Beta Was this translation helpful? Give feedback.
All reactions