unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Stephen Compall <stephen.compall@gmail.com>
To: "Aleix Conchillo Flaqué" <aconchillo@gmail.com>
Cc: guile-user <guile-user@gnu.org>
Subject: Re: syntax-case guards
Date: Sun, 3 Feb 2013 19:52:09 -0500	[thread overview]
Message-ID: <CACs3V9XOXW8uzphWZSkGdvd912qzUqYj7heuU-R6Xn8M1RmRcw@mail.gmail.com> (raw)
In-Reply-To: <CA+XASoXBELxXxy=Br9cAjmoVra5Q4rdb4v5LafCwK4g=RQpWAg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 652 bytes --]

On Feb 3, 2013 6:56 PM, "Aleix Conchillo Flaqué" <aconchillo@gmail.com>
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.

[-- Attachment #2: Type: text/html, Size: 832 bytes --]

  reply	other threads:[~2013-02-04  0:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-03 23:56 syntax-case guards Aleix Conchillo Flaqué
2013-02-04  0:52 ` Stephen Compall [this message]
2013-02-04  1:14 ` Ian Price
2013-02-04  5:19   ` Aleix Conchillo Flaqué

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACs3V9XOXW8uzphWZSkGdvd912qzUqYj7heuU-R6Xn8M1RmRcw@mail.gmail.com \
    --to=stephen.compall@gmail.com \
    --cc=aconchillo@gmail.com \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).