www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 4f76581ea720d401354e6738285ddb5144d46a2c
parent 67b351dc4af3a7882e8bfa66991035748ebc0a38
Author: Greg Hendershott <greghendershott@gmail.com>
Date:   Sun, 20 Jan 2013 18:05:43 -0500

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

Diffstat:
Mindex.rkt | 17++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/index.rkt b/index.rkt @@ -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"]. @; ----------------------------------------------------------------------------