News for hackers. Stuff that matters.
Re:Async and Await in Rust: a full proposal by Matthias247 on Sunday July 15, 2018 @11:46PM (#17538609)
The way I accepted it after years of confusion, and without still understand the word: A monad is any type which supports 2 specific operations. One maps an type into it's monadic form, and the other allows to apply functions to monadic types and returns the monadic type again. The latter is sometimes called bind or flatmap.

For Future types, the first thing could be called MakeReadyFuture(type), the second one Future.then(result => functionWhichReturnsANewFuture).

Re:Async and Await in Rust: a full proposal by pimeys on Monday July 16, 2018 @03:13AM (#17539352)
... which allows a generic composition enabling imperative programming in a purely functional language. Haskell has do notation, that sugars the syntax to look like one is writing imperative code, even though it's all about composing Monads.