[racket] Expanding a macro inside a cond
Ok I added cond-expanders to my-cond.
On Nov 1, 2014, at 4:40 PM, Andrew Kent <andmkent at indiana.edu> wrote:
> 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
>
>
> ____________________
> Racket Users list:
> http://lists.racket-lang.org/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20141101/8da22209/attachment-0001.html>