kotlin-result

A multiplatform Result monad for modelling success or failure operations. (by michaelbull)

Kotlin-result Alternatives

Similar projects and alternatives to kotlin-result

  1. Lemmy

    🐀 A decentralised discussion platform for communities.

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. redux

    310 kotlin-result VS redux

    A JS library for predictable global state management

  4. kotlin

    230 kotlin-result VS kotlin

    The Kotlin Programming Language.

  5. JDK

    219 kotlin-result VS JDK

    JDK main-line development https://openjdk.org/projects/jdk

  6. pyright

    Static Type Checker for Python

  7. KEEP

    70 kotlin-result VS KEEP

    Kotlin Evolution and Enhancement Process (by Kotlin)

  8. warp

    A super-easy, composable, web server framework for warp speeds. (by seanmonstar)

  9. kotlinx.coroutines

    Library support for Kotlin coroutines

  10. ktor

    57 kotlin-result VS ktor

    Framework for quickly creating connected applications in Kotlin with minimal effort

  11. miniserve

    🌟 For when you really just want to serve some files over HTTP right now!

  12. simple-stack

    [ACTIVE] Simple Stack, a backstack library / navigation framework for simpler navigation and state management (for fragments, views, or whatevers).

  13. Kategory

    The perfect companion for your Kotlin journey - Inspired by functional, data-oriented and concurrent programming (by arrow-kt)

  14. uom

    Units of measurement -- type-safe zero-cost dimensional analysis

  15. Rust-Full-Stack

    Rust projects here are easy to use. There are blog posts for them also.

  16. detekt

    Static code analysis for Kotlin

  17. redux-kotlin

    Predictable state container for Kotlin apps

  18. Result

    The modelling for success/failure of operations in Kotlin and KMM (Kotlin Multiplatform Mobile) (by kittinunf)

  19. forkhandles

    Foundational libraries for Kotlin

  20. Optional

    A robust option type for C#

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better kotlin-result alternative or higher similarity.

kotlin-result discussion

Log in or Post with

kotlin-result reviews and mentions

Posts with mentions or reviews of kotlin-result. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-10-31.
  • We Programmers Need "Results"
    5 projects | news.ycombinator.com | 31 Oct 2025
    > But it feels a bit weird to client side construct an Exception only to stuff it into a Result.error(...) instead of actually throwing it

    yep, `kotlin.Result` constraining your error type to `Throwable` is a real headache as it forces you to still model your domain logic via exceptions. it also means people can still accidentally throw these exceptions. not to mention the overhead of creating stack traces per instantiation unless you disable that on every subclass.

    i recommend using https://github.com/michaelbull/kotlin-result?tab=readme-ov-f... (which has a nice breakdown of all the other reasons to avoid `kotlin.Result`)

  • Detekt – A static code analyzer for Kotlin
    7 projects | news.ycombinator.com | 24 Jul 2025
    there's an official template here: https://github.com/detekt/detekt-custom-rule-template/tree/m...

    and here's a personal real world example of a 'custom' rule: https://github.com/michaelbull/kotlin-result/compare/master....

  • JEP draft: Exception handling in switch
    6 projects | news.ycombinator.com | 19 Apr 2024
    Author here. I have no idea what you could possibly mean with this comment. The coroutineBinding implementation correctly uses the coroutines API for parallel decomposition of Result bindings, exactly how the Kotlin Corotines guide tells you to (backed by a [Mutex](https://github.com/michaelbull/kotlin-result/blob/master/kot...)). The coroutineBinding isn't even the main selling point of the library, you can use it without using this feature entirely.

    Please could you elaborate on what "looking thread safe" means to you? The only portion of the library that supports concurrency *is* thread safe - the unit tests prove it and the use of concurrency primitives such as Kotlin's Mutex are indicative of this. I truly have no idea how you've judged the entirely of the lbirary on whether it's "thread safe" when there is a single function that's related to concurrency and it is very clearly using concurrency primitives.

  • How do you define errors?
    1 project | /r/Kotlin | 17 Apr 2023
    Sealed classes in combination with a library like https://github.com/michaelbull/kotlin-result will get you what you need. Essentially at that point you'll be doing error handling the way you would in Rust, where a 1-level deep sealed class containing data classes as children act as the root error type and each of its variants. If you have errors coming from two different domains you just create a wrapper error type for each domain.
  • Result Class with Generic Type for both Success and Failure States
    5 projects | /r/Kotlin | 21 Mar 2023
    This is a great result lib: https://github.com/michaelbull/kotlin-result
  • Is runCatching in use in any of your projects ? My team is abusing it
    2 projects | /r/androiddev | 20 Mar 2023
    Lastly I do not like kotlin's Result and we use the kotlin-result library which is more expressive and not tied to Throwable (similar to Arrow's Either).
  • Struggling with software robustness with Kotlin
    2 projects | /r/Kotlin | 28 Feb 2023
    In my own code, I started to use explicit error handling. I'm currently experimenting with Result (from https://github.com/michaelbull/kotlin-result) and Raise (from https://arrow-kt.io/).
  • Thoughts on Kotlin Multiplatform?
    1 project | /r/androiddev | 2 Feb 2023
    un-related to multiplatform i've found it extremely helpful to wrap things in a Result type. If something can throw an error, it get's a Result return type. It sounds like that would help your use case too. The built in Result may be useful too
  • Programming with Result
    2 projects | /r/Kotlin | 29 Oct 2022
    This is a better impl.
  • It seems like I'm forced to make this choice at least once a day
    5 projects | /r/ProgrammerHumor | 25 Oct 2022
  • A note from our sponsor - SaaSHub
    www.saashub.com | 8 Jun 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic kotlin-result repo stats
38
1,251
8.7
about 2 months ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you know that Kotlin is
the 16th most popular programming language
based on number of references?