[racket] Wildcard Macro Names?

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Wed Jan 23 15:56:25 EST 2013

2013/1/23 Scott Klarenbach <scott at pointyhat.ca>:
> Is it possible to have a macro bound to an identifier with wildcards in it?
>
> So, for example, a macro (@*) that would be used for (@x) and (@y), where
> the symbols x and y are available during expansion.
>
> Or is this something that would have to be done at the reader level?  ie, (@
> ...) is the macro, and the reader turns @x and @y into (@ x) and (@ y)
> respectively.

Take a look at identifier macros.
Here is a nice example to get started:

http://blog.racket-lang.org/2012/11/roman-numerals-in-racket-sources.html

/Jens Axel

Posted on the users mailing list.