bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#49809: [PATCH] Add macro 'pcase-setq'


From: Okam
Subject: bug#49809: [PATCH] Add macro 'pcase-setq'
Date: Sun, 01 Aug 2021 17:20:41 +0000

Hello,

This patch adds a `setq`-like equivalent to `pcase-let`.  This is
convenient when one wants the bindings to exist outside of a `let` form.

This macro expands into multiple `setq` calls that are combined where
possible.


     ;; => (1 2 3 4)
     (let (a b c d)
       (pcase-setq a 1
                   b 2
                   `[,c ,d] [3 4])
       (list a b c d))


Please let me know what should be changed.

Thank you.

Attachment: 0001-Add-macro-pcase-setq.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]