News for hackers. Stuff that matters.
Re:Kotlin: The Problem with null by masklinn on Saturday January 13, 2018 @06:36AM (#16139193)
That's got nothing to do with monads though, you can do that in Swift or Rust which have a monadic option type but don't actually have monads:

    match (xm, ym) {
        (Some(x), Some(y)) => x + y,
        _ => 0
    }

There are no comments on this comment yet.