GNU bug report logs - #13678
24.2.93; pcase: mention list-like QPatterns in the doc

Previous Next

Package: emacs;

Reported by: michael_heerdegen <at> web.de

Date: Sun, 10 Feb 2013 17:49:02 UTC

Severity: minor

Found in version 24.2.93

Done: Michael Heerdegen <michael_heerdegen <at> web.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Michael Heerdegen <michael_heerdegen <at> web.de>
Cc: 13678 <at> debbugs.gnu.org
Subject: bug#13678: 24.2.93; pcase: mention list-like QPatterns in the doc
Date: Sun, 10 Feb 2013 20:43:57 -0500
> Sure, `(QPAT1 . QPAT2)' also matches lists - but `(QPAT1 . QPAT2)' and
> `(QPat1 ...QPatn)' are different forms (expressions)

Actually, no, they are identical:

  (QPAT1 QPAT2 QPAT3) is indistinguishable from
  (QPAT1 . (QPAT2 . (QPAT3 . nil)))

the equivalence between the two is imposed by the reader, long before we
know that these things will be "patterns in a pcase" rather than
expressions, or data in a quoted thingy, ...
  

        Stefan




This bug report was last modified 12 years and 103 days ago.

Previous Next


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