From: Marius Vollmer <mvo@zagadka.de>
Subject: Re: srfi-13 string-any tail call
Date: 23 Dec 2004 05:16:26 +0100 [thread overview]
Message-ID: <87ekhhr6n9.fsf@zagadka.de> (raw)
In-Reply-To: <87r7likolm.fsf@zip.com.au>
Kevin Ryde <user42@zip.com.au> writes:
> Marius Vollmer <marius.vollmer@uni-dortmund.de> writes:
> >
> > Yes. It would be nice in general to have a new kind of 'trampoline'
> > subr that returns a function+args to call in a tail-recursive way.
>
> Or func+args in some new magic type, so a subr can return either a
> value or a new place to goto.
Hmm, a value can be returned by using 'identity' as the function to
tail-call, but which method is more efficient is probably hard to say.
> I was wanting `catch' to do a tail call to its handler so the handler
> could recurse to continue on the rest of some data.
That would be very nice.
--
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel
prev parent reply other threads:[~2004-12-23 4:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-06 21:08 srfi-13 string-any tail call Kevin Ryde
2004-12-22 16:54 ` Marius Vollmer
2004-12-22 21:30 ` Kevin Ryde
2004-12-23 4:16 ` Marius Vollmer [this message]
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
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ekhhr6n9.fsf@zagadka.de \
--to=mvo@zagadka.de \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).