On Friday, March 3, 2017 at 3:47:15 PM UTC-8, Dan Liebgold wrote:
> Is there something like format-id that can create a keyword in a syntax 
> transformer?
> 

Searching the interwebs yielded this:

  ;; identifier->keyword : Identifer -> (Syntaxof Keyword)
  (define (identifier->keyword id)
    (datum->syntax id (string->keyword (symbol->string (syntax-e id))) id id))

which does what I need.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to