[racket] Expanding a macro inside a cond

From: Andrew Kent (andmkent at indiana.edu)
Date: Sat Nov 1 16:40:40 EDT 2014

Ah, that makes sense. Thank you.

I guess I'll have to peruse Alexander's my-cond if I want to explore the
idea further.

Best,
Andrew

On Sat, Nov 1, 2014 at 4:36 PM, Matthias Felleisen <matthias at ccs.neu.edu>
wrote:

>
> On Nov 1, 2014, at 4:15 PM, Andrew Kent wrote:
>
> (cond
>   [$: p (Point x y) => (+ x y)])
>
>
> You cannot expand a cond-line via syntax because it isn't an expression or
> a definition position.
> Similarly, you cannot expand the parameter list position in a function.
>
> -- Matthias
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20141101/3c25eeaa/attachment.html>

Posted on the users mailing list.