[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Re: Creating books with Scheme
From: |
Nicolas Sceaux |
Subject: |
Re: [PATCH] Re: Creating books with Scheme |
Date: |
Sun, 30 Aug 2009 12:12:19 +0200 |
Le 30 août 09 à 03:20, Carl Sorensen a écrit :
On 8/29/09 7:01 PM, "Reinhold Kainhofer" <address@hidden>
wrote:
You mean something like this patch:
http://codereview.appspot.com/112044
LGTM.
Just a question. In your regression test, you first define (add-one-
score
#f), then you set! it to a lambda function.
Is that solely so that you can have pitch defined in the lexical
scope but
outside of add-one-score? Or is there more going on that I haven't
figured
out?
Yes, that's to build a closure.
Now, as there is only one function using pitch, it can be simplied to
(define add-one-score
(let ((pitch 0))
(lambda (parser) ...)))
- Re: Creating books with Scheme, (continued)
- Re: Creating books with Scheme, Nicolas Sceaux, 2009/08/16
- Re: Creating books with Scheme, Reinhold Kainhofer, 2009/08/16
- Re: Creating books with Scheme, Reinhold Kainhofer, 2009/08/29
- Re: Creating books with Scheme, Nicolas Sceaux, 2009/08/29
- [PATCH] Re: Creating books with Scheme, Reinhold Kainhofer, 2009/08/29
- Re: [PATCH] Re: Creating books with Scheme, Carl Sorensen, 2009/08/29
- Re: [PATCH] Re: Creating books with Scheme,
Nicolas Sceaux <=