www

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

commit cf57cb7b1f63fbe0c13cd5b48738311e971ecd04
parent 579dcfa9f3d55203faeedbc14300451d5e524a2a
Author: Greg Hendershott <greghendershott@gmail.com>
Date:   Wed, 31 Oct 2012 14:49:38 -0400

Hoist a subsubsection up to a subsection

Diffstat:
Mmain.rkt | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/main.rkt b/main.rkt @@ -647,15 +647,15 @@ can appreciate @racket[define-syntax-rule] as a convenient shorthand, but not be scared of, or confused about, that for which it's shorthand. -@subsection{Patterns and templates} - Most of the materials I found for learning macros, including the Racket @italic{Guide}, do a very good job explaining how patterns -work. I'm not going to regurgitate that here. +and templates work. I'm not going to regurgitate that here. -Instead, let's look at some ways we're likely to get tripped up. +Sometimes, we need to go a step beyond the pattern and template. Let's +look at some examples, how we can get confused, and how to get it +working. -@subsubsection{"A pattern variable can't be used outside of a template"} +@subsection{"A pattern variable can't be used outside of a template"} Let's say we want to define a function with a hyphenated name, a-b, but we supply the a and b parts separately. The Racket @racket[struct]