Skip to content

Commit

Permalink
Fix #4: Clarify attempt to define syntax param id as normal var.
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Hendershott committed Jan 20, 2013
1 parent 67b351d commit 4f76581
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions index.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -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"].

@; ----------------------------------------------------------------------------
Expand Down

0 comments on commit 4f76581

Please sign in to comment.