chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] crazy behaviour in csi!


From: Thomas Chust
Subject: Re: [Chicken-users] crazy behaviour in csi!
Date: Mon, 5 Dec 2005 23:49:11 +0000 (GMT)

On Mon, 5 Dec 2005, Sunnan wrote:

[...]
I hadn't looked at srfi-31 before. I thought I knew most of the srfis.
This one was pretty disappointing.
[...]

Hmm, most of the time I don't need this type of thing, but if I want to pass an anonymous callback that is recursive, the rec form comes in quite handy. I find writing
  (letrec ((loop
             (lambda (p)
               (if (pred? p) (foo p) (loop (bar p))))))
    loop)
much more awkward than
  (rec (loop p) (if (pred? p) (foo p) (loop (bar p)))

cu,
Thomas




reply via email to

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