2013/1/23 Scott Klarenbach <[email protected]>:
> 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
____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to