From: Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Does pcase need progn in if condition
Date: Sat, 22 May 2021 06:39:42 +0200 [thread overview]
Message-ID: <87k0nr9yb5.fsf@zoho.eu> (raw)
In-Reply-To: trinity-6a3dd6b3-a2b2-48af-a1e0-07a3ca1665d0-1621616996798@3c-app-mailcom-bs04
Christopher Dimech wrote:
> I do not think it needs a progn as it consists of
> a single expression.
(while some-thing do)
(unless not-some-thing do)
(if something
do-this <- `progn' here if >1
else-do-that-1
else-do-furthermore-this-2
...
alright-done-n)
sometimes one can put useful things there, e.g. `let', and
avoid using progn for this reason
Yeah, progn is imbecile, almost. only, for some reason, prog1
is cool, and prog2 is weird.
(if t 1 2 3 4) ; 1
--
underground experts united
https://dataswamp.org/~incal
next prev parent reply other threads:[~2021-05-22 4:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-21 9:25 Does pcase need progn in if condition pietru
2021-05-21 17:09 ` Christopher Dimech
2021-05-22 4:39 ` Emanuel Berg via Users list for the GNU Emacs text editor [this message]
2021-05-22 9:09 ` Jean Louis
2021-05-22 9:32 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-05-22 11:08 ` Jean Louis
2021-05-22 11:37 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-05-21 21:26 ` Emanuel Berg via Users list for the GNU Emacs text editor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k0nr9yb5.fsf@zoho.eu \
--to=help-gnu-emacs@gnu.org \
--cc=moasenwood@zoho.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.