Subject: quasi-quote "ooo" pattern not work

From: Jinn Suu <[email-masked]>
Date: Tue, 25 Feb 2025 05:50:11 +0000

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!