GNU bug report logs -
#68509
30.0.50; pcase-dolist matches backquote pattern incorrectly
Previous Next
Full log
Message #38 received at 68509 <at> debbugs.gnu.org (full text, mbox):
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>> In my patch, I proposed to skip such elements.
>> An alternative could be throwing an error.
>
> As I said, what you propose is a *different* construct.
> Maybe we should add some extra option/keyword to `pcase-dolist` to
> indicate what to do with elements that don't match (such as signaling
> an error, a warning, silently skipping it, ...).
>
> Similar issues affect `pcase-let`, of course.
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 such situation, the code logic probably has a
problem that is worth highlighting.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
This bug report was last modified 1 year and 112 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.