[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] matchable 3.0 and SRFI-9 records
From: |
Alex Shinn |
Subject: |
Re: [Chicken-users] matchable 3.0 and SRFI-9 records |
Date: |
Tue, 15 Feb 2011 23:13:53 +0900 |
On Sun, Feb 13, 2011 at 9:52 PM, Felix
<address@hidden> wrote:
>
> Talking about matchable: I always wondered whether this should
> work:
>
> (match '(...)
> (('...) 'yep))
This is:
(match (quote ...)
((quote ...) 'yep))
so the pattern is trying to match a list and bind the result to
the "quote" identifier. The problem is the pattern language is
ambiguous - does (quote X) get precedence or does (X ...) ?
Currently it's the latter because of the way matchable checks
for ellipsis in match-one and everything else in match-two.
--
Alex