On Thu, Apr 16, 2015 at 8:02 AM, Jon Zeppieri <zeppi...@gmail.com> wrote:
> On Thu, Apr 16, 2015 at 7:32 AM, Alexander D. Knauth
> <alexan...@knauth.org> wrote:
>> By the way, why wouldn’t you just use define-match-expander instead of 
>> defining the B struct?
>>
>>
>
> Because I need the same identifier to expand either to a procedure or
> to a match expander, and I don't know how to do that using
> define-match-expander.
>

A message I received from Matthias prompted me to take a closer look
at the docs for define-match-expander, and I realized that it actually
accepts two syntax transformers, where the second (optional) one is
for when the identifier is used in an expression context. So, in fact,
I can use define-match-expander.

-Jon

-- 
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