Subject: bug#33340: closed (Re: bug#33340: named match-let doesn't work)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 12 Nov 2018 04:28:02 +0000

Your bug report

#33340: named match-let doesn't work

which was filed against the guile package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
33340: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=33340
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#33340: named match-let doesn't work
From: Mark H Weaver <[email-masked]>
To: Alex Kost <[email-masked]>
Cc: Ernesto Gabriel <[email-masked]>, [email-masked]
Date: Sun, 11 Nov 2018 23:26:17 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

Alex Kost <[email-masked]> writes:

> Ernesto Gabriel (2018-11-11 00:44 -0300) wrote:
>
>> match-let works as advertised, but a named match-let gives errors
>
> I think this is the same as:
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=22925

Indeed, thanks for pointing that out.  The bug is now fixed by commit
8e86dd93a0640161fe0098a80ccc9b814dddd280 on the stable-2.2 branch.  That
commit also includes several other fixes from the upstream match.scm in
Chibi-Scheme.

      Mark

Subject: named match-let doesn't work
From: Ernesto Gabriel <[email-masked]>
To: [email-masked]
Date: Sun, 11 Nov 2018 00:44:22 -0300
List-Id: <debbugs-submit.debbugs.gnu.org>

match-let works as advertised, but a named match-let gives errors
for example
(match-let (((a . b) '(1 . 2))) (list a b)) => (1 2)
but
(match-let loop (((a . b) '(1 . 2))) (list a b))
does not work, even though it's basically the above code but instead it's
named

syntax according to the reference
match-let ((pattern expression) …) body
match-let variable ((pattern init) …) body

this is guile 2.2.4