commit 40518865c64acee12a76b1adb587167adedef13d
parent 209aa0fb7e492940c0136597222b191f1338c0b5
Author: Greg Hendershott <greghendershott@gmail.com>
Date: Tue, 30 Oct 2012 18:11:44 -0400
Explain that `with-syntax' ~= "define pattern variable".
Diffstat:
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/main.rkt b/main.rkt
@@ -726,9 +726,11 @@ Well that explains it. Instead, we wanted to expand to:
Our template is using the symbol @racket[name] but we wanted its
value, such as @racket[foo-bar] in this use of our macro.
-A solution here is @racket[with-syntax], which lets us say that
-@racket[name] is something whose value can be used in our output
-template:
+A solution here is @racket[with-syntax]@margin-note*{You could
+consider @racket[with-syntax] to mean, "define pattern variables".},
+which lets us say that @racket[name] is something whose value can be
+used in our output template. In effect, it lets us say that
+@racket[name] is an additional pattern variable.
@i[
(define-syntax (hyphen-define/wrong1.3 stx)