These are chat archives for rust-lang/rust

13th
Jun 2016
Matheus Magalhães de Alcantara
@demhydraz
Jun 13 2016 10:43
And I like this. I think Haskell' should define map to be fmap. Good guy Rust.
@pthariensflame and and_then is like (>>=), correct?
Alexander Ronald Altman
@pthariensflame
Jun 13 2016 16:50
When it isn't flat_map, yes. :)
LeonineKing1199
@LeonineKing1199
Jun 13 2016 18:12
Huh, I thought >>= was equivalent to a flat mapping. I thought >>= represented the map + join calls required to flatten out the monadic structure
Alexander Ronald Altman
@pthariensflame
Jun 13 2016 18:16
It is. The names >>=, bind, flat_map, concat_map, and_then, and select (among others) all refer to the same underlying concept.
LeonineKing1199
@LeonineKing1199
Jun 13 2016 18:18
Also, Good guy Rust sounds like it should be a new Reddit meme XD

"Manages object lifetimes for you automatically.

Code is still performant."

LeonineKing1199
@LeonineKing1199
Jun 13 2016 18:28
Oh come on, guys, that's the best joke I'm ever gonna make XD