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?
[ Parent
| on HN ]
That doesn't do quite the same thing; the original example gets rid of the Maybe, defaulting to 0.
> 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...