chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Named let*


From: Danny Gratzer
Subject: Re: [Chicken-users] Named let*
Date: Fri, 24 May 2013 16:44:30 -0500

I don't find it terribly useful, named let's are good for ad hoc loops. Since we're resetting the variables at a point a ways away from the names it'd be odd to refer to them there. Plus it's not clear in the loop step whether we refer to the old values or to the new ones.


     (let* loop ((foo 1) (bar 2))

            ;; dozens of lines

            (loop (+ 1 foo) (+ 1 foo)))

Are the 2 foo's the same in that line or different? Either way seems ambiguous to me.
    


On Fri, May 24, 2013 at 4:37 PM, Michele La Monaca <address@hidden> wrote:
Hi all,

R5RS doesn't  specify this kind of syntax (nor Chicken supports it):

(let* loop ((a <init>) (b a))
  <body>)

To me it seems a missing piece of syntax. Am I wrong?

Ciao,
Michele

_______________________________________________
Chicken-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/chicken-users



--
Danny Gratzer

reply via email to

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