guile-devel
[Top][All Lists]
Advanced

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

Re: srfi-13 string-any tail call


From: Marius Vollmer
Subject: Re: srfi-13 string-any tail call
Date: 23 Dec 2004 05:16:26 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Kevin Ryde <address@hidden> writes:

> Marius Vollmer <address@hidden> 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




reply via email to

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