Fix problem with syntax-parameterize.
Need to change order of examples so that `it` is still undefined in the evaluator. (Is there a way to "reset" the evaluator, for situation like this?)
This commit is contained in:
parent
c0650a310a
commit
6d06141751
File diff suppressed because one or more lines are too long
17
main.rkt
17
main.rkt
|
@ -724,13 +724,6 @@ define @racket[it] to mean an error by default. Only inside of our
|
|||
(aif #f (displayln it) (void))
|
||||
]
|
||||
|
||||
We can still use @racket[it] as a normal variable name:
|
||||
|
||||
@i[
|
||||
(define it 10)
|
||||
it
|
||||
]
|
||||
|
||||
If we try to use @racket[it] outside of an @racket[aif] form, and
|
||||
@racket[it] isn't otherwise defined, we get an error like we want:
|
||||
|
||||
|
@ -738,12 +731,20 @@ If we try to use @racket[it] outside of an @racket[aif] form, and
|
|||
(displayln it)
|
||||
]
|
||||
|
||||
Perfect.
|
||||
But we can still define @racket[it] as a normal variable:
|
||||
|
||||
@i[
|
||||
(define it 10)
|
||||
it
|
||||
]
|
||||
|
||||
|
||||
@; ----------------------------------------------------------------------------
|
||||
|
||||
@section{Robust macros: syntax-parse}
|
||||
|
||||
TO-DO.
|
||||
TO-DO.
|
||||
TO-DO.
|
||||
|
||||
@; ----------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue
Block a user