On Sun, Feb 13, 2011 at 9:52 PM, Felix
<fe...@call-with-current-continuation.org> 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

_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to