emacs-devel
[Top][All Lists]
Advanced

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

Re: cond*


From: Richard Stallman
Subject: Re: cond*
Date: Sat, 23 Dec 2023 22:57:10 -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. ]]]

  > This may be confusing. Consider

  > (let ((somenumber 2) (form '(10)))
  > (cond*
  >   ((match* `(,(> (+ somenumber form-car-value) 3))) form)
  > ))

This tries to use (> (+ somenumber form-car-value) 3) as a constrained
variable, but it is not valid as one.  In a constrained variable, the
first argument of the predicate function is supposed to be a pattern
to match.  It can't be an expression such as (+ somenumber
form-car-value).

Yesterday I rewrote the documentation of constrained variables and
sent that to the list.  Does that version make this clear?

-- 
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)





reply via email to

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