[erlang-questions] Monads in Erlang?
Richard O'Keefe
ok@REDACTED
Thu Mar 19 23:21:59 CET 2009
On 20 Mar 2009, at 5:40 am, Robert Raschke wrote:
> all this very interesting discussion about patterns and state carrying
> from one expression to the next makes me think a lot of state monads.
As has already been remarked.
> I've never really delved into Haskell all too deeply (it's on my list
> of things to learn much more of), but would some of the objections and
> issues to do with numbered "state patterns" be addressed by something
> similar to state monads?
Perfectly. The idea of writing and using combinator libraries
in Haskell is not to "simplify" the plumbing (as the suggestion
to allow reassignment of local variables would have it) but to
remove the plumbing *completely* from view.
> I'm guessing that tuple patterns involving
> atoms as signifiers for results make this tricky,
No.
More information about the erlang-questions
mailing list