From: "Till Crueger" <crueger@informatik.uni-bonn.de>
To: "caml-list@yquem.inria.fr" <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] Disappointment
Date: Mon, 21 Jul 2008 23:42:30 +0200 [thread overview]
Message-ID: <op.uenvw4v0tayt6l@reitoei.dyndns.info> (raw)
In-Reply-To: <4b5157c30807211428r19ef9865n6a65e81ac2f5fe31@mail.gmail.com>
On Mon, 21 Jul 2008 23:28:36 +0200, Paolo Donadeo <p.donadeo@gmail.com>
wrote:
> I like functional programming, but monads [1] must be too little to be
> grabbed by my mind. This time the interest in monads was aroused by
> the interesting article of David Teller, Arnaud Spiwack and Till
> Varoquaux [2] about the error monad, but for using the library they
> wrote I need at least some knowledge about monads and the do-notation.
it might take a while, but it's worth the effort... It took me some time
to get the concept as well. Don't worry it doesn't have to do with your IQ.
> I ask you all: can anyone make me a practical example, something
> involving strings, files, the network, an image or sound processing
> algorithm, something vaguely real? Not abstract mathematical
> structures, beautiful algebraic properties and general statements,
> please: the net is full of such tutorials, especially Haskell fan
> sites ;-)
hmm, very informaly speaking, monads allow you to "wrap up" some other
value, or a set of those... Then of course there are lot's of way's to
wrap something up, so this is really abstract.
One good thing that helped me a lot, was to implement the monads myself in
OCaml, even though i hadn't understood them fully at that time. Try for
example to build your own I/O Monad and it will start to get more clearly
how it works.
> [1] http://en.wikipedia.org/wiki/Monad_(symbol)
I suggest this one instead as a good starting point:
http://en.wikipedia.org/wiki/Monads_in_functional_programming
Good luck,
Till
p.s. Sorry for everyone who get's this message in error... I am to dumb to
get the recipient right.. I should go to bed now...
--
There is no Keyser Soze.
-- The Usual Suspects
next prev parent reply other threads:[~2008-07-21 21:42 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-21 21:28 Disappointment Paolo Donadeo
2008-07-21 21:42 ` Till Crueger [this message]
2008-07-22 3:41 ` [Caml-list] Disappointment Fabrice Marchant
2008-07-22 6:50 ` Gabriel Kerneis
2008-07-22 10:56 ` Dr. Thomas Fischbacher
2008-07-22 13:27 ` Axel Poigné
2008-07-22 15:17 ` Andrej Bauer
2008-07-22 15:21 ` Axel Poigné
2008-07-22 12:57 ` Nicolas Pouillard
2008-07-22 13:16 ` Dario Teixeira
2008-07-22 16:11 ` Christophe TROESTLER
2008-07-22 21:55 ` Paolo Donadeo
2008-07-22 16:10 ` Warren Harris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=op.uenvw4v0tayt6l@reitoei.dyndns.info \
--to=crueger@informatik.uni-bonn.de \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox