[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: new `pcase-let' syntax
From: |
Philip Kaludercic |
Subject: |
Re: new `pcase-let' syntax |
Date: |
Thu, 24 Nov 2022 19:06:16 +0000 |
Emanuel Berg <incal@dataswamp.org> writes:
> Check out this syntax with `pcase-let'! :O
>
> (pcase-let ((`(,up ,down) (if button
> `(,#'backward-button ,#'forward-button)
> `(,#'previous-line ,#'forward-line) ))) ... )
In what sense is this new?
I also get the feeling this is a hack for the sake of a hack. Is it
really that much better than the "classical"
--8<---------------cut here---------------start------------->8---
(let ((up #'previous-line) (down #'forward-line))
(when button
(setq up #'backward-button down #'forward-button))
;; ...
)
--8<---------------cut here---------------end--------------->8---