GNU bug report logs -
#47261
Destructuring with Pcase without assigning values
Previous Next
Reported by: Okam <okamsn <at> protonmail.com>
Date: Fri, 19 Mar 2021 13:48:01 UTC
Severity: wishlist
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
>> The `pcase` macro itself uses this function, so it should hopefully be
>> "good enough", but let me know if it's causing you trouble.
> This seems to work well for my use case. Thank you for making this change.
You're welcome. It was actually a good change for the code's
readability as well.
> Are the variables always given in the order that they appear in the
> pattern?
I don't know. Why?
> If not, is finding elements of the form "(\, SYMBOL)" enough to
> identify variables in a Pcase pattern?
No. , is not even one of the core pcase patterns, it's only something
used within the ` pattern (which is not a core pattern either; it is
defined via `pcase-defmacro`).
Stefan
This bug report was last modified 2 years and 330 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.