[racket] Null value in macros
I wanted to show how to define auxiliary functions for syntax processing, something you do wish to know when you come from Emacs/CL
On Sep 23, 2013, at 12:31 PM, Sam Tobin-Hochstadt <samth at cs.indiana.edu> wrote:
> On Mon, Sep 23, 2013 at 11:59 AM, Matthias Felleisen
> <matthias at ccs.neu.edu> wrote:
>>
>> (define field-name (append-id stx "-" #'f))
>> (define set-name (append-id stx #'f "-set!"))
>
> It gets even shorter when you write this as:
>
> (define field-name (format-id stx "-~a" #'f))
> (define set-name (format-id stx "~a-set!" #'f))
>
> using `format-id` from `racket/syntax`.
>
> Sam