GNU bug report logs - #76544
quasi-quote "ooo" pattern not work

Previous Next

Package: guile;

Reported by: Jinn Suu <js42007t <at> gmail.com>

Date: Tue, 25 Feb 2025 10:12:01 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Jinn Suu <js42007t <at> gmail.com>
To: 76544 <at> debbugs.gnu.org
Subject: bug#76544: quasi-quote "ooo" pattern not work
Date: Tue, 25 Feb 2025 05:50:11 +0000
[Message part 1 (text/plain, inline)]
Hello,

I encountered some errors with pattern matching:


  1.
For quasi-quote, the "ooo" pattern including "..." does not work. I looked at source code match-upstream.scm and perhaps it has not been implemented for quasi-quote cases??

(use-modules (ice-9 match))
(match '(1 2 3)
  (`(,a ,b ...) b)
  )



  1.
There are some conflicts within ice-9 modules themselves. For example occam-channel.scm causes predicate match to fail:

(use-modules (ice-9 match))
(match 9 ((? odd? a) a)) => 9
(use-modules (ice-9 match) (ice-9 occam-channel))
(match 9 ((? odd? a) a)) => conflict with occam-channel library


Please primarily focus on question 1.

Thanks!
[Message part 2 (text/html, inline)]

This bug report was last modified 112 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.