chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] do* code-review


From: Alexej Magura
Subject: [Chicken-users] do* code-review
Date: Wed, 12 Aug 2015 16:07:48 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0

Could I please get a code review on this function: I didn't write it, but even if I had, I'd still want some of yall to look over it just to make sure that it's as efficient and performant as far as getting as much work done as possible with as little effort as possible: efficient, essentially, lulz. 



(define-syntax do*
  (syntax-rules ()
    ((_ ((?var0 ?init0 ?inc0) ...)
         (?test ?result)
         ?body ...)
     (let* ((?var0 ?init0) ...)
       (let lp ()
         (cond (?test ?result)
               (else ?body ...
                     (set! ?var0 ?inc0) ...
                     (lp))))))))



Thanks

reply via email to

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