bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [DOCPATCH]Revamp of doc/ref/scheme-control.texi


From: Stephen Compall
Subject: Re: [DOCPATCH]Revamp of doc/ref/scheme-control.texi
Date: 18 Jul 2003 12:14:13 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

For your convenience, the URL is:
http://mail.gnu.org/archive/html/guile-devel/2003-07/msg00016.html

Kevin Ryde <address@hidden> writes:
> I posted a rewrite of this section to guile-devel last week, if you
> want to compare.  (Subject "doco continuations".)
> 
> I hadn't attempted to redo the example, mainly because I couldn't
> think of something that wasn't simply a loop or state machine in
> disguise.

1. IMHO, your explanation is better (albeit not as concise ;).  Do you
   want me to work this in and repost my patch, or would you rather do
   it?

2. About the example: if you think it's too obvious, here's an idea: A
   function performs a number of tests.  When a test fails, it throws
   an error, with REST (see the errors node) being the current
   continuation.  This gives the calling function an opportunity to
   report the error, or hopefully fix it, and then resume executing
   the testing function.  You could emulate it with closures, sure,
   but....

3. The above idea was one for another list: some "nifty" things you
   can do with continuations.  That is, as it is now, it vaguely
   refers to situations in which call/cc may be preferable, without
   explaining at least one of those situations.

--
Stephen Compall or s11 or sirian

You know the great thing about TV?  If something important happens
anywhere at all in the world, no matter what time of the day or night,
you can always change the channel.
                -- Jim Ignatowski




reply via email to

[Prev in Thread] Current Thread [Next in Thread]