unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* ‘match’ and “k or more” patterns
@ 2010-09-05 15:04 Ludovic Courtès
  2010-09-06  1:46 ` Alex Shinn
  0 siblings, 1 reply; 13+ messages in thread
From: Ludovic Courtès @ 2010-09-05 15:04 UTC (permalink / raw)
  To: Alex Shinn; +Cc: guile-devel

[-- Attachment #1: Type: text/plain, Size: 558 bytes --]

Hello Alex,

GNU Guile 1.9 now uses your implementation of ‘match’ as a nice
replacement for Wright’s implementation, so thank you!

I stumbled upon this incompatibility: Wright’s ‘match’ supports ‘..1’,
‘..2’, etc., which mean “1 or more”, “2 or more”, etc., and the
associated variable (when there’s one) is bound to the list that
matches:

  (match '(a 1 2) (('a x ..1) x))
  => (1 2)

AFAICS these patterns aren’t implemented in your ‘match’.

Do you have plans to implement them?

Thanks!
Ludo’.

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2010-10-03 12:35 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-05 15:04 ‘match’ and “k or more” patterns Ludovic Courtès
2010-09-06  1:46 ` Alex Shinn
2010-09-06 12:12   ` Ludovic Courtès
2010-09-08  2:18     ` Alex Shinn
2010-09-08 12:06       ` Ludovic Courtès
2010-09-08 18:53       ` Andy Wingo
2010-09-19 21:30       ` Ludovic Courtès
     [not found]         ` <2083922817.3379621.1285477344869.JavaMail.root@zmbs1.inria.fr>
2010-09-27 21:56           ` Ludovic Courtès
2010-09-28  1:20             ` Alex Shinn
     [not found]             ` <704726234.3471946.1285636813715.JavaMail.root@zmbs1.inria.fr>
2010-09-28 10:27               ` Ludovic Courtès
2010-10-02  7:13                 ` Alex Shinn
2010-10-03 10:24                   ` Andy Wingo
     [not found]                   ` <2087670639.297243.1286101256715.JavaMail.root@zmbs1.inria.fr>
2010-10-03 12:35                     ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).