chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] matchable egg: error while reporting error?


From: Marco Maggi
Subject: Re: [Chicken-users] matchable egg: error while reporting error?
Date: Mon, 03 Jun 2019 09:25:51 +0200

Peter Bex wrote:

> On Mon, Jun 03, 2019 at 06:21:56AM +0200, Marco Maggi wrote:
>> Ciao,

>>   with CHICKEN  5.0.0 this  form using  MATCH from  "matchable" (updated
>> right now):

>> (match '(#:a #:b c d)
>>   (((? keyword? k*) ... (? symbol? s*) ...)
>>    (pretty-print k*)
>>    (pretty-print s*))
>>   (_
>>    (pretty-print 'no)))

>> fails with:

>> Error: during expansion of (match-syntax-error283 ...) - no rule matches 
>> form: (match-syntax-error "multiple ellipsis patterns not allowed at same 
>> level")

>> which looks like an error while reporting an error.

> It's complaining about your pattern, which is ambiguous.

I understand  this.  But  the problem  looks like  MATCH-SYNTAX-ERROR is
used with  an invalid  syntax by  the "matchable"  internals themselves.
What I  expected is an error  during the expansion of  MATCH, not during
the expansion of MATCH-SYNTAX-ERROR.
-- 
Marco Maggi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]