The way I try to understand monads is that a bunch of Haskell developers were trying to stay true to the functional paradigm (specifically, no side effects), but they needed to do I/O. So they invented a concept that lets them do just that. Thus the monad was born.
Unfortunately this violated their mantra of avoiding success at all costs, because suddenly Haskell became a little more useful. --Dave On May 2, 2013, at 8:06 AM, justin wrote: > A monad is a monoid in the category of endofunctors, what's the problem? > > > On Thu, May 2, 2013 at 5:36 AM, S. Dale Morrey <[email protected]>wrote: > >> I just read that Java 8 will include Monads. I tried to google the term >> and came up with mind blowing complex stuff which may have stripped a gear >> in my brain. >> >> Can someone please explain in terms so simple a Java programmer can >> explain, what the heck is a monad or more importantly what would be a valid >> use case for one? In fact I'm not sure what they are is as important as >> why, when or how I would use one (or several) since of course I tend to >> learn by example. >> >> If there is anything similar in Perl, PHP or Python, those examples would >> be helpful too. >> Car analogies appreciated as well. >> >> Thanks! >> >> /* >> PLUG: http://plug.org, #utah on irc.freenode.net >> Unsubscribe: http://plug.org/mailman/options/plug >> Don't fear the penguin. >> */ >> > > > > -- > http://justinhileman.com > > /* > PLUG: http://plug.org, #utah on irc.freenode.net > Unsubscribe: http://plug.org/mailman/options/plug > Don't fear the penguin. > */ > /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
