emacs-devel
[Top][All Lists]
Advanced

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

Re: cond* Examples


From: Richard Stallman
Subject: Re: cond* Examples
Date: Wed, 08 Jan 2025 22:51:19 -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. ]]]

Thanks for your comments.

  > This feels inconsistent with `when-let*' and `if-let*' behavior, where
  > there's an intuitive reason that every bind must succeed for the first
  > or all body forms to evaluate.  Is this a first-pass tradeoff?

What does "first-pass tradeoff" mean?

I never considered the possibility of checking each of the binding values.
That would be convenient when you want to test them all.
It would ne a nuisance when there is a variable that could be nil
and you don't want to test it.

I don't have strong feelings about this.  Anyone who has an opinion
about this, please post it.

Regarding the general comments about other languages, I am indeed
trying to find a more elegant way to address the same issue that pcase
addresses.  But doing this in Lisp is constrained by the
characteristic of Lisp that is its strongest feature: that code is
data built out of simple general-purpose data structures.  This is the
furtherst step in that dieection that I saw a way to realize.

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