help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: pcase with progn


From: Heime
Subject: Re: pcase with progn
Date: Wed, 27 Nov 2024 20:50:58 +0000





Sent with Proton Mail secure email.

On Thursday, November 28th, 2024 at 7:39 AM, Scott Bell <sctb@me.com> wrote:

> Heime via Users list for the GNU Emacs text editor
> help-gnu-emacs@gnu.org writes:
> 
> > Does pcase require progn for multiple commands?
> 
> 
> Nope. Each clause is of the form ‘(PATTERN BODY-FORMS...)’, where the
> body forms of the successful clause are evaluated and the final value is
> returned. In this sense it behaves similarly to ‘cond’.

The command should return the string representation of symbol if
it exists.  When the command fails (symbol does not exist), are commands
customarily return nil or an error?



reply via email to

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