[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#49809: [PATCH] Add macro 'pcase-setq'
From: |
Lars Ingebrigtsen |
Subject: |
bug#49809: [PATCH] Add macro 'pcase-setq' |
Date: |
Wed, 04 Aug 2021 09:14:16 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Okam <okamsn@protonmail.com> writes:
> 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))
Perhaps Stefan has an opinion here; added to the CCs.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#49809: [PATCH] Add macro 'pcase-setq', Okam, 2021/08/01
- bug#49809: [PATCH] Add macro 'pcase-setq',
Lars Ingebrigtsen <=
- bug#49809: [PATCH] Add macro 'pcase-setq', Stefan Monnier, 2021/08/04
- bug#49809: [PATCH] Add macro 'pcase-setq', Michael Heerdegen, 2021/08/04
- bug#49809: [PATCH] Add macro 'pcase-setq', Stefan Monnier, 2021/08/05
- bug#49809: [PATCH] Add macro 'pcase-setq', Stefan Monnier, 2021/08/05
- bug#49809: [PATCH] Add macro 'pcase-setq', Michael Heerdegen, 2021/08/05
- bug#49809: [PATCH] Add macro 'pcase-setq', Stefan Monnier, 2021/08/06
- bug#49809: [PATCH] Add macro 'pcase-setq', Michael Heerdegen, 2021/08/06
bug#49809: [PATCH] Add macro 'pcase-setq', Okam, 2021/08/06