www

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

commit c6a42a05edff3e70413606e2c396df5a5afb1487
parent 7e53189a36a229bdcfa7b4ebfda7733308d9f629
Author: Greg Hendershott <greghendershott@gmail.com>
Date:   Sat, 27 Oct 2012 09:39:53 -0400

Small edits.

Diffstat:
Mmain.rkt | 24+++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)

diff --git a/main.rkt b/main.rkt @@ -86,7 +86,7 @@ to change it (a "transformer"). We'll work at that level for awhile to get comfortable and to de-mythologize this whole macro business. 2. Next, we'll realize that some pattern-matching would make life -easier. We'll learn about @racket[syntax-case], and its shorthand +easier. We'll learn about @racket[syntax-case] and its shorthand cousin, @racket[define-syntax-rule]. We'll discover we can get confused if we want to munge pattern variables before sticking them back in the template, and learn how to do that. @@ -95,8 +95,8 @@ back in the template, and learn how to do that. if we want to write the ever-popular anaphoric if, with a "magic variable"? It turns out we've been protected from making certain kind of mistakes. When we want to do this kind of thing on purpose, we use -a @racket[syntax parameter]. [There are other, older ways to do -this. We won't look at them. We also won't spend a lot of time +a syntax parameter. [There are other, older ways to do this. We won't +look at them. We also won't spend a lot of time advocating "hygiene"---we'll just stipulate that it's good.] 4. Finally, we'll realize that our macros could be smarter when @@ -957,14 +957,16 @@ before PLT Scheme was renamed to Racket. After initially wondering if I was asking the wrong question and conflating two different issues :), Shriram Krishnamurthi looked at an -early draft and encouraged me to keep going. Sam Tobin-Hochstadt also -encouraged me. - -After writing much of this, I noticed that Racket's documentation had -improved since I last read it. Actually it was the same, and very -good---I'd changed. It's interesting how much of what we already know -is projected between the lines. That's what makes it so hard to write -documentation. The only advantage I had was knowing so much less. +early draft and encouraged me to keep going. Sam Tobin-Hochstadt and +Robby Findler also encouraged me. + +Finally, I noticed something strange. After writing much of this, when +I returned to some parts of the Racket documentation, I noticed it had +improved since I last read it. Of course, it was the same. I'd +changed. It's interesting how much of what we already know is +projected between the lines. My point is, the Racket documentation is +very good. The @italic{Guide} provides helpful examples and +tutorials. The @italic{Reference} is very clear and precise. @; ----------------------------------------------------------------------------