Re: [racket-users] Re: Pattern Matching in Macros | Meaning of dot

2016-03-13 Thread Jens Axel Søgaard
If we use (define-syntax define/memoized (syntax-rules () ((_ (name . args) . body) (define name (memoize (lambda args body)) and body is bound to((displayln x) (displayln y) (displayz)) then (lambda args body) will become (lambda ((displayln x) (displayln y) (dis

[racket-users] Re: Pattern Matching in Macros | Meaning of dot

2016-03-13 Thread Pedro Caldeira
Sorry I've messed up my reply, here's the actual reply >Imagine (_ (foo x y z) (displayln x) (displayln y) (displayln z)) as the >actual syntax. The .body will be bound to the sequence of three diaplaylns and >this sequence will become the body of the lambda in the expansion. So in this case bod