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 < mikele.chic...@lamonaca.net> 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 > Chicken-users@nongnu.org > https://lists.nongnu.org/mailman/listinfo/chicken-users > -- Danny Gratzer
_______________________________________________ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users