Progress on issue #1.
This commit is contained in:
parent
d945843738
commit
bbed76d1e9
6
main.rkt
6
main.rkt
|
@ -531,10 +531,10 @@ definition of the helper function(s) inside @racket[begin-for-syntax]:
|
||||||
@racketblock[
|
@racketblock[
|
||||||
(begin-for-syntax
|
(begin-for-syntax
|
||||||
(define (my-helper-function ....)
|
(define (my-helper-function ....)
|
||||||
....)
|
....))
|
||||||
(define-syntax (macro-using-my-helper-function stx)
|
(define-syntax (macro-using-my-helper-function stx)
|
||||||
(my-helper-function ....)
|
(my-helper-function ....)
|
||||||
....))
|
....)
|
||||||
]
|
]
|
||||||
|
|
||||||
To review:
|
To review:
|
||||||
|
@ -580,7 +580,7 @@ possible but tedious using list accessors such as
|
||||||
@racket[match] to do pattern-matching.
|
@racket[match] to do pattern-matching.
|
||||||
|
|
||||||
@margin-note{Historically, @racket[syntax-case] and
|
@margin-note{Historically, @racket[syntax-case] and
|
||||||
@racket[syntax-parse] pattern matching came first. @racket[match] was
|
@racket[syntax-rules] pattern matching came first. @racket[match] was
|
||||||
added to Racket later.}
|
added to Racket later.}
|
||||||
|
|
||||||
It turns out that pattern-matching was one of the first improvements
|
It turns out that pattern-matching was one of the first improvements
|
||||||
|
|
Loading…
Reference in New Issue
Block a user