[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#68509: 30.0.50; pcase-dolist matches backquote pattern incorrectly
From: |
Stefan Monnier |
Subject: |
bug#68509: 30.0.50; pcase-dolist matches backquote pattern incorrectly |
Date: |
Tue, 20 Feb 2024 09:35:59 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
> What about adding extra option/keyword and also showing a runtime
> warning when pcase-dolist/pcase-let encounter something that does not
> match the pattern?
In the current use of those primitives, it's routine/normal/common for
a pattern like `(,a ,b) to encounter lists of different length than 2,
so a warning should be emitted only if specifically requested via an
option/keyword.
I think it would be OK to emit a warning (even if not specifically
requested via an option/keyword) when a value like (help . me) fails to
match `(a . ,b), but as mentioned I don't know a good way to distinguish
those two kinds of cases.
Stefan
- bug#68509: 30.0.50; pcase-dolist matches backquote pattern incorrectly, Ihor Radchenko, 2024/02/19
- bug#68509: 30.0.50; pcase-dolist matches backquote pattern incorrectly, Eli Zaretskii, 2024/02/19
- bug#68509: 30.0.50; pcase-dolist matches backquote pattern incorrectly, Stefan Monnier, 2024/02/19
- bug#68509: 30.0.50; pcase-dolist matches backquote pattern incorrectly, Ihor Radchenko, 2024/02/19
- bug#68509: 30.0.50; pcase-dolist matches backquote pattern incorrectly, Stefan Monnier, 2024/02/19
- bug#68509: 30.0.50; pcase-dolist matches backquote pattern incorrectly, Ihor Radchenko, 2024/02/20
- bug#68509: 30.0.50; pcase-dolist matches backquote pattern incorrectly,
Stefan Monnier <=
- bug#68509: 30.0.50; pcase-dolist matches backquote pattern incorrectly, Ihor Radchenko, 2024/02/20
- bug#68509: 30.0.50; pcase-dolist matches backquote pattern incorrectly, Stefan Monnier, 2024/02/20
- bug#68509: 30.0.50; pcase-dolist matches backquote pattern incorrectly, Ihor Radchenko, 2024/02/21
- bug#68509: 30.0.50; pcase-dolist matches backquote pattern incorrectly, Stefan Monnier, 2024/02/21
- bug#68509: 30.0.50; pcase-dolist matches backquote pattern incorrectly, Ihor Radchenko, 2024/02/23
- bug#68509: 30.0.50; pcase-dolist matches backquote pattern incorrectly, Stefan Monnier, 2024/02/23
- bug#68509: 30.0.50; pcase-dolist matches backquote pattern incorrectly, Ihor Radchenko, 2024/02/24
- bug#68509: 30.0.50; pcase-dolist matches backquote pattern incorrectly, Stefan Monnier, 2024/02/24