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

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

Re: Does pcase need progn in if condition


From: Emanuel Berg
Subject: Re: Does pcase need progn in if condition
Date: Sat, 22 May 2021 06:39:42 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

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




reply via email to

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