[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Code for cond*
From: |
Richard Stallman |
Subject: |
Re: Code for cond* |
Date: |
Sat, 03 Feb 2024 23:46:29 -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. ]]]
> I don't think so. The primitive patterns were carefully chosen so it
> shouldn't be needed. E.g.:
> (pcase-defmacro constrain (symbol exp) `(and ,symbol (guard ,exp)))
You're talking about one of the two kinds of constrained variables --
the more compex and general kind. The simple kind is (PREDICATE VAR
OTHER-ARGS). I am pretty sure a simple macro facility can't handle
tha because it isn't identified by pne specific symbol at the start,
> should `(constrain x (null
> (cdr x)))` be ignored if it appears within a `cdr-ignore`?).
It affects only the built-in patterns that destructure cons cells
and lists
--
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: Code for cond*, Richard Stallman, 2024/02/02
- Re: Code for cond*, Stefan Monnier, 2024/02/03
- Re: Code for cond*, Emanuel Berg, 2024/02/03
- Re: Code for cond*, Richard Stallman, 2024/02/03
- Re: Code for cond*,
Richard Stallman <=
- Re: Code for cond*, Stefan Monnier, 2024/02/04
- Re: Code for cond*, Stefan Monnier, 2024/02/12
- Re: Code for cond*, Stefan Monnier, 2024/02/12
- Re: Code for cond*, Richard Stallman, 2024/02/14
- Re: Code for cond*, Stefan Monnier, 2024/02/14
- Re: Code for cond*, Richard Stallman, 2024/02/21
- Re: Code for cond*, Stefan Monnier, 2024/02/21
- Re: Code for cond*, Richard Stallman, 2024/02/24
- Re: Code for cond*, Stefan Monnier, 2024/02/25
- Re: Code for cond*, Richard Stallman, 2024/02/28