From: Sam Tobin-Hochstadt (samth at cs.indiana.edu) Date: Mon Sep 23 12:31:12 EDT 2013 |
|
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
Posted on the users mailing list. |
|