From: james woodyatt <jhw@wetware.com>
To: The Trade <caml-list@inria.fr>
Subject: Re: [Caml-list] Re: Continuations
Date: Tue, 17 Dec 2002 00:13:16 -0800 [thread overview]
Message-ID: <64F96593-1197-11D7-ABF0-000393BA7EBA@wetware.com> (raw)
In-Reply-To: <Pine.A41.4.44.0212161311450.5931062-100000@ibm1.cicrp.jussieu.fr>
On Monday, Dec 16, 2002, at 05:36 US/Pacific, Diego Olivier Fernandez
Pons wrote:
> "Michaël Grünewald" <michael-grunewald@wanadoo.fr> wrote:
>>
>> [continuations] Are not they possible ? If I remember well (I did
>> not check it back), the following sample do what is called
>> `Programming with rupture and continuation' (I learned it from J.
>> Chazarin "Programmer avec Scheme").
>
> [...] Philip Wadler a écrit un certain nombre d'articles sur les
> rapports
> entre continuations et monades. Enfin, si j'ai bonne mémoire Benjamin
> C. Pierce a posté dans la liste Caml il y a quelque temps une série
> de liens en rapport avec les continuations.
Another paper that I found exceedingly helpful in this regard is this
one:
<http://www.math.chalmers.se/~augustss/AFP/monads.html>
Of course, all the code in that paper is written in some Haskell
variant that I can't identify with complete accuracy. But scroll down
to the section about the continuation monad, and then watch how it can
be used as the basis of more complicated monads.
I've found that equivalent code in Ocaml is not terribly difficult to
write. It does tend to make you wish for something to let you define
overloaded operators, but you can get by fine without.
--
j h woodyatt <jhw@wetware.com>
markets are only free to the people who own them.
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2002-12-17 8:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-16 13:36 Diego Olivier Fernandez Pons
2002-12-16 18:53 ` Pal-Kristian Engstad
2002-12-17 7:58 ` james woodyatt
2002-12-17 13:50 ` Diego Olivier Fernandez Pons
2002-12-17 8:13 ` james woodyatt [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-12-10 18:49 [Caml-list] Continuations Ceri Storey
2002-12-12 5:51 ` [Caml-list] Continuations Michaël Grünewald
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=64F96593-1197-11D7-ABF0-000393BA7EBA@wetware.com \
--to=jhw@wetware.com \
--cc=caml-list@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