Fix #4: Clarify attempt to define syntax param id as normal var.
This commit is contained in:
parent
67b351dc4a
commit
4f76581ea7
17
index.rkt
17
index.rkt
|
@ -1353,13 +1353,24 @@ If we try to use @racket[it] outside of an @racket[aif] form, and
|
||||||
(displayln it)
|
(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[
|
@i[
|
||||||
(define it 10)
|
(let ([it 10])
|
||||||
it
|
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"].
|
For a deeper look, see @hyperlink["http://www.schemeworkshop.org/2011/papers/Barzilay2011.pdf" "Keeping it Clean with Syntax Parameters"].
|
||||||
|
|
||||||
@; ----------------------------------------------------------------------------
|
@; ----------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user