[racket] Problem with macro

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Fri Aug 12 08:53:30 EDT 2011

On Fri, Aug 12, 2011 at 7:49 AM, Casey Klein
<clklein at eecs.northwestern.edu> wrote:
> On Fri, Aug 12, 2011 at 7:39 AM, Robby Findler
> <robby at eecs.northwestern.edu> wrote:
>> Unfortunately, that position in a 'case' expression is not a place
>> where macro expansion happens. You can, however, use a 'cond' instead
>> of 'case'.
>>
>
> But you still can't use a macro like `process-state' to generate an
> entire `cond' clause (i.e., the question part AND the answer part).

Oh, right. You'd have to break it up into two macros. Or I guess you
can try to generate 'if' expressions (but the nesting has to change).

Robby


Posted on the users mailing list.