logo       

Re: srfi-13 string-any tail call: msg#00108

lisp.guile.devel

Subject: Re: srfi-13 string-any tail call

Kevin Ryde <user42@xxxxxxxxxx> writes:

> Marius Vollmer <marius.vollmer@xxxxxxxxxxxxxxx> 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@xxxxxxx
http://lists.gnu.org/mailman/listinfo/guile-devel



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise