[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Instead of pcase
|
From: |
Richard Stallman |
|
Subject: |
Re: Instead of pcase |
|
Date: |
Fri, 17 Nov 2023 22:04:14 -0500 |
[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
> (`(,_ . ,(and (pred functionp) f)) (funcall f))
> (`(,hookfun . (,start ,end ,collection . ,plist))
I read the Info documentation of pcase a few days ago and I can't
recall the rules for understanding those two pcase clauses. What I
recall is that they are not to be interpreted as Lisp expressions.
They contain code that looks like Lisp but does not have the same
semantic rules as Lisp.
`(,_ . ,(and (pred functionp) f))
is not Lisp.
`(,hookfun . (,start ,end ,collection . ,plist)
is not Lisp either. That list would be meaningful as a Lisp
expression but what it means here is different.
That is a consequence of the terse little language that pcase defines.
--
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)
- Re: Instead of pcase, (continued)
- Re: Instead of pcase, Eli Zaretskii, 2023/11/16
- Re: Instead of pcase, Michael Heerdegen, 2023/11/17
- Re: Instead of pcase, Dmitry Gutov, 2023/11/16
- Re: Instead of pcase, T.V Raman, 2023/11/16
- Re: Instead of pcase, Philip Kaludercic, 2023/11/16
- Re: Instead of pcase, T.V Raman, 2023/11/16
- Re: Instead of pcase,
Richard Stallman <=
- Re: Instead of pcase, Michael Heerdegen, 2023/11/19
- Re: Instead of pcase, Barry Fishman, 2023/11/19
- Re: Instead of pcase, Dmitry Gutov, 2023/11/19
- Re: Instead of pcase, Eric Abrahamsen, 2023/11/19
- Re: Instead of pcase, Stefan Monnier, 2023/11/24
- Re: Instead of pcase, Richard Stallman, 2023/11/26
- Re: Instead of pcase, Barry Fishman, 2023/11/19
- Re: Instead of pcase, Dmitry Gutov, 2023/11/19
- Re: Instead of pcase, Michael Heerdegen, 2023/11/20
- Re: Instead of pcase, Richard Stallman, 2023/11/22