kotlin-result icon indicating copy to clipboard operation
kotlin-result copied to clipboard

A multiplatform Result monad for modelling success or failure operations.

Results 22 kotlin-result issues
Sort by recently updated
recently updated
newest added

Would you be open to adding helper functions for using `Result`s in tests? For example: ```kotlin inline fun Result.assertOk(): V { assertIs(this) return value } ``` Usage: ```kotlin fun doSomething():...

help wanted

Have you considered providing extensions for Kotlin Flows, specifically, `Flow`? I'm making heavy use of these "flows-of-result" and I have some helpers of my own. However, I feel that it...

discussion

Would it be possible/easy to add target mingwX86? PS: thanks for such an elegant design.

Sometimes there is a need to recover certain errors and this recovery may produce an error on its own. Existing recoverIf function doesn't fit this case because the result of...

Hi! I would've posted this in discussion if it was available, but I was curious if it had ever been considered to use coroutines instead of exceptions for the binding...

discussion

I've noticed that certain APIs use "failure" terminology (`onFailure`, `fold(failure = )`, `mapBoth(failure =)`), whereas others use "error" terminology (`mapError`, `getError`, `toErrorIf` and more). It looks like it would be...

As BindException can be thrown its possible for a another try block to catch it so technically it's part of the API. I actually discovered this because of bug where...

This is more of an FYI than a bug report for kotlin-result, although you might want to highlight this in the README. I see with 2.0 you've switched to an...

It's very easy to forget calling `.bind()` on a method especially when the rest of the `binding` block doesn't depend on the return result of this method (eg a `Result`...

enhancement
help wanted
good first issue

**Description**: I'm working on a Kotlin Multiplatform Project (KMP) that targets both Android and iOS. I'm using the `Result` API from this library, and I've encountered issues when trying to...

question