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


Basic kotlin-result repo stats
12 days ago

michaelbull/kotlin-result is an open source project licensed under ISC License which is an OSI approved license.

Kotlin-result Alternatives

Similar projects and alternatives to kotlin-result

  • GitHub repo redux

    Predictable state container for JavaScript apps

  • GitHub repo Lemmy

    🐀 Building a federated alternative to reddit in rust

  • GitHub repo warp

    A super-easy, composable, web server framework for warp speeds.

  • GitHub repo miniserve

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

  • GitHub repo cargo-crev

    A cryptographically verifiable code review system for the cargo (Rust) package manager.

  • GitHub repo Tokamak

    SwiftUI-compatible framework for building browser apps with WebAssembly and native apps for other platforms

  • GitHub repo Rust-Full-Stack

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

  • GitHub repo uom

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

  • GitHub repo o

    Ring-buffers in go without interface{}

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


Posts where kotlin-result has been mentioned. We have used some of these posts to build our list of alternatives and similar projects - the last one was on 2021-03-16.
  • Kotlin, networking, and exceptions
  • Functional Error Handling
    reddit.com/r/Kotlin | 2021-04-02
    It's a contrived example, but you get the idea. You can do the same thing with Arrow Core's Either type or with https://github.com/michaelbull/kotlin-result . If I had to do it again, I'd probably just use Arrow Core for my current project. Having Either, Validated, NonEmptyList, and all of the helpers is great. The only "problem" is that there's a very steep learning curve and it's very complex because of Kotlin's lack of higher-kinded types. So if you let yourself get "sucked in" to Arrow's way of doing things, you'll be trying to figure out the weird workarounds they're doing to encoded concepts like higher-kinded types and type classes into Kotlin, which really doesn't have those things.
  • Has learning Rust influenced how you write other languages?
    reddit.com/r/rust | 2021-03-16
    But as far as enums + explicit error handling that's similar to Rust, that's actually not that hard. OCaml is a great example. OCaml also has async, but not multi-threading (yet!). Haskell and Scala are others. And you definitely can do enums and Result<> style returns in Swift and Kotlin- they're just not as nice as Rust, Scala, et al, because they have no syntax support for it (though you can implement something like Scala's for-comprehension in Kotlin: https://github.com/michaelbull/kotlin-result).
  • Everywhere I go, I miss Rust's `enum`s
    reddit.com/r/rust | 2021-01-26
    Should I use someone else's: https://github.com/michaelbull/kotlin-result or https://arrow-kt.io/docs/apidocs/arrow-core-data/arrow.core/-either/ ?
  • Is Rust suitable for web development?
    reddit.com/r/rust | 2021-01-06
    We built our own Result type for Kotlin as well. Arrow-KT has all the tools necessary - although you could just build this with a sealed class as well. After we built our own, I found kotlin-result: https://github.com/michaelbull/kotlin-result. I think at my next gig, I'll give that a shot.