[racket] Generate Syntax Identifiers
What little macro-fu I ever had abandoned me long back.
Say I want to generate an identifier, e.g. add a standard suffix.
So if my identifier is `hello', the suffix `-tmp' is appended forming
`hello-tmp'.
The following gets there but I seem to recall using an easier technique in
days of lore.
[(_ name:id e0:expr e1:expr ...)
(with-syntax ((name-tmp (datum->syntax stx (string->symbol (string-append
(symbol->string (syntax->datum #'name))
"-tmp")))))
Is there an easier way to append together syntax?
Thanks,
Ray
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20121115/e45683d7/attachment.html>