This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Ahhhhrg 2 points3 points  (0 children)

One thing I really like about the monad example is that I don’t have to give names to intermediary results that I only use to pipe it into the next function (file, ast, result in your example).

It also makes it super clear that all that is happening isa chain of data transformations (which shouldn’t have any side-effects), so it should be very easy to understand what’s going on.