|
From: | Stephen Compall |
Subject: | Re: syntax-case guards |
Date: | Sun, 3 Feb 2013 19:52:09 -0500 |
On Feb 3, 2013 6:56 PM, "Aleix Conchillo Flaqué" <address@hidden> wrote:
> So I have something like,
>
> ((_ (struct (k v) ...))
> (string? (syntax->datum #'k))
> exp)
>
> And I want k to be a string. However, I am getting this error:
>
> missing ellipsis in form (syntax k)
The error is correct; k lives in single-ellipsis world. What should k mean to syntax->datum? The first k? The last k?
Try changing #'k to #'(k ...), and adjusting the guard to deal with list of k, such as you will get, instead of just k.
--
Stephen Compall
If anyone in the MSA is online, you should watch this flythrough.
[Prev in Thread] | Current Thread | [Next in Thread] |