News for hackers. Stuff that matters.
Re:Functional Programming Isn't the Answer (2014) by virtualwhys on Thursday July 28, 2016 @06:51PM (#12183794)
Even if `<-` is not assigning a value, within the monadic context bind is doing just that, assigning result of the expression on the right to the variable on the left.

The point is that everyone can take a guess as to what's happening in the long form version.

Re:Functional Programming Isn't the Answer (2014) by catnaroek on Thursday July 28, 2016 @06:55PM (#12183808)
> Even if `<-` is not assigning a value, within the monadic context bind is doing just that, assigning result of the expression on the right to the variable on the left.

What about monadic actions that may return less or more than one value? For instance, parsers for languages with non-deterministic grammars, that return all valid parse trees, rather than just the zeroth one.

> The point is that everyone can take a guess as to what's happening in the long form version.

And that guess would often be wrong.