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

The `runCatching` function was initially set to `InvocationKind.EXACTLY_ONCE`, which could lead to indeterminate behavior. Therefore, it has been changed to `InvocationKind.AT_MOST_ONCE`. The problem occurs in the following case: ```kotlin @Test...

I noticed that the new inline value class in [API 2.0](https://github.com/michaelbull/kotlin-result/releases/tag/2.0.0) lets us access result.value directly without checking if it’s actually safe, which wasn’t the case before. Here’s what I...

discussion

Here's an extension function that might be useful to include. ```kotlin /** * Maps this [Result][Result] to [Result][Result] by either applying the [transform] * function to the [value][Ok.value] if this...

enhancement
discussion

The Kotlin compiler doesn't support exporting inline classes to Objective-C/Swift ([docs](https://kotlinlang.org/docs/native-objc-interop.html#unsupported), [Interopedia](https://github.com/kotlin-hands-on/kotlin-swift-interopedia/blob/main/docs/classesandinterfaces/Inline%20classes.md)), which Result 2.x is built upon. Instead of representing the result type in the headers, the compiler will...

question
discussion

- https://central.sonatype.org/faq/what-is-different-between-central-portal-and-legacy-ossrh/#self-service-migration - https://www.jetbrains.com/help/kotlin-multiplatform-dev/multiplatform-publish-libraries.html#set-up-the-publishing-plugin

Issue #104 This pull request introduces a new `@UnsafeResultValueAccess` annotation to enforce safer access patterns for `Result.value` and `Result.error` in the `kotlin-result` library. Additionally, it updates the Kotlin conventions to...

This pull request adds new references to Haskell's `Data.Traversable.sequenceA` function in the documentation comments of two methods in the `kotlin-result` library, enhancing the documentation with additional context for users familiar...

This pull request introduces a new `parZip` utility to the `kotlin-result-coroutines` library, which allows running multiple computations in parallel and combining their results. It also includes comprehensive test cases to...

Emit the compilation warning on expect/actual classes. The warning must mention that expect/actual classes are in Beta ![Image](https://github.com/user-attachments/assets/b024ef9d-9c20-4d9c-b9c3-c541135edcf0)