From 40518865c64acee12a76b1adb587167adedef13d Mon Sep 17 00:00:00 2001 From: Greg Hendershott Date: Tue, 30 Oct 2012 18:11:44 -0400 Subject: [PATCH] Explain that `with-syntax' ~= "define pattern variable". --- main.rkt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/main.rkt b/main.rkt index a72fd41..de1cba3 100644 --- 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)