[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: combining cond and let, to replace pcase.
|
From: |
Daniel Semyonov |
|
Subject: |
Re: combining cond and let, to replace pcase. |
|
Date: |
Fri, 24 Nov 2023 05:26:02 +0200 |
|
User-agent: |
K-9 Mail for Android |
Sorry, I sent the last mail as HTML by accident, here's a more readable version
of the code:
(cond* (:bind foo bar (x foobar))
;; IMO changing t to ':always' would make it very clear what's
;; going on here.
(t (match-set `(a ,foo ,bar) x))
((match-set `(b ,foo ,bar) x)
;; do stuff and exit
)
;; more conditions...
)
(cond* (:bind (x foobar))
(:match (`(a ,foo ,bar) x))
(:match (`(b ,foo ,bar) x)
;; do stuff and exit...
)
;; more conditions...
)
- Re: combining cond and let, to replace pcase., (continued)
- Re: combining cond and let, to replace pcase., Michael Heerdegen, 2023/11/21
- Re: combining cond and let, to replace pcase., Richard Stallman, 2023/11/22
- Re: combining cond and let, to replace pcase., Tomas Hlavaty, 2023/11/23
- Re: combining cond and let, to replace pcase., Richard Stallman, 2023/11/25
- Re: combining cond and let, to replace pcase., Tomas Hlavaty, 2023/11/27
- Re: combining cond and let, to replace pcase., Yuri Khan, 2023/11/27
- Re: combining cond and let, to replace pcase., Tomas Hlavaty, 2023/11/28
- Re: combining cond and let, to replace pcase., Manuel Giraud, 2023/11/23
- Re: combining cond and let, to replace pcase., Richard Stallman, 2023/11/25
- Re: combining cond and let, to replace pcase., Daniel Semyonov, 2023/11/23
- Re: combining cond and let, to replace pcase.,
Daniel Semyonov <=
- Re: combining cond and let, to replace pcase., Richard Stallman, 2023/11/24
- Re: combining cond and let, to replace pcase., Stefan Monnier, 2023/11/25
- Re: combining cond and let, to replace pcase., Richard Stallman, 2023/11/26
- Re: combining cond and let, to replace pcase., Richard Stallman, 2023/11/26
- Re: combining cond and let, to replace pcase., Manuel Giraud, 2023/11/27
- Re: combining cond and let, to replace pcase., Yuri Khan, 2023/11/27
- Re: combining cond and let, to replace pcase., Stefan Monnier, 2023/11/27
- Re: combining cond and let, to replace pcase., Richard Stallman, 2023/11/28
- Re: combining cond and let, to replace pcase., Richard Stallman, 2023/11/28
Re: Instead of pcase, Jim Porter, 2023/11/16