From: ludo@gnu.org (Ludovic Courtès)
To: guile-devel@gnu.org
Subject: Re: new match system bug?
Date: Sat, 04 Sep 2010 14:44:49 +0200 [thread overview]
Message-ID: <878w3hy8xq.fsf@gnu.org> (raw)
In-Reply-To: 201009041438.37352.stefan.tampe@spray.se
Hello!
Stefan Israelsson Tampe <stefan.tampe@spray.se> writes:
> While eating the dogfood of the new match macro I come across a bug
> e.g, this does not work!
>
> (match '(a b) ((and x (a ... b)) a))
But:
scheme@(guile-user)> (match '(a b) ((and x (a . b)) a))
$1 = a
According to the grammar in the manual, I don’t think literal ‘...’ can
be used in the middle of a list; it should only be used at the end of a
list, where it means “zero or more”:
scheme@(guile-user)> (match '(a b) ((a ...) a))
$2 = (a b)
Thanks,
Ludo’.
next prev parent reply other threads:[~2010-09-04 12:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-04 12:38 new match system bug? Stefan Israelsson Tampe
2010-09-04 12:44 ` Ludovic Courtès [this message]
2010-09-04 13:29 ` Stefan Israelsson Tampe
2010-09-04 15:00 ` Ludovic Courtès
2010-09-04 15:17 ` Stefan Israelsson Tampe
2010-09-04 15:02 ` Stefan Israelsson Tampe
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=878w3hy8xq.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guile-devel@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).