News for hackers. Stuff that matters.
Re:Kotlin: The Problem with null by masklinn on Saturday January 13, 2018 @06:35AM (#16139191)
Surely since you have monads you can just use the tools they give you?

    fn = liftM2 (+)
Re:Kotlin: The Problem with null by zenhack on Saturday January 13, 2018 @01:33PM (#16140587)
That doesn't do quite the same thing; the original example gets rid of the Maybe, defaulting to 0.
Re:Kotlin: The Problem with null by masklinn on Monday January 15, 2018 @04:30AM (#16149503)
> That doesn't do quite the same thing

You're missing the point entirely.

> the original example gets rid of the Maybe, defaulting to 0.

http://hackage.haskell.org/package/base-4.10.1.0/docs/Data-M...