News for hackers. Stuff that matters.
Re:Announcing Rust 1.13 by moomin on Thursday November 10, 2016 @04:05PM (#12924325)
That's because they're both >>= in Haskell. So is SelectMany in C#.

Or to put it another way, it's taking an operation that does this:

a -> t of b

And turns it into one that does this:

t of a -> t of b

There's a formal name for "t"s that support this operation. I'll let you guess what it is. :)

Re:Announcing Rust 1.13 by tatterdemalion on Thursday November 10, 2016 @04:23PM (#12924510)
This is inaccurate. While Result is a monad, `?` in Rust is not the monadic bind. That's the `and_then` method.