News for hackers. Stuff that matters.
Re:Ask HN: Are Monads Really That Hard? by lalwat on Sunday November 11, 2012 @01:49AM (#4768927)
My teacher told us that a monad is somewhat like a recipe of an action. A set of instructions without a real purpose of return. So you have to create them under different terms than functions. A function is more of a specification with a constant result, ie put in 2 get 4, regardless of state. It is the combined power of monads and functions which grant access to the more interesting features of a functional programming language.
Re:Ask HN: Are Monads Really That Hard? by jonsterling on Friday November 16, 2012 @01:53AM (#4792774)
I'm afraid your teacher is either trolling you, or hasn't much understanding of the topic himself... :(