Fix #4: Clarify attempt to define syntax param id as normal var.

This commit is contained in:
Greg Hendershott 2013-01-20 18:05:43 -05:00
parent 67b351dc4a
commit 4f76581ea7

View File

@ -1353,13 +1353,24 @@ If we try to use @racket[it] outside of an @racket[aif] form, and
(displayln it)
]
But we can still define @racket[it] as a normal variable:
But we can still define @racket[it] as a normal variable in local
definition contexts like:
@i[
(define it 10)
it
(let ([it 10])
it)
]
or:
@i[
(define (foo)
(define it 10)
it)
(foo)
]
For a deeper look, see @hyperlink["http://www.schemeworkshop.org/2011/papers/Barzilay2011.pdf" "Keeping it Clean with Syntax Parameters"].
@; ----------------------------------------------------------------------------