|
From: | Michael Heerdegen |
Subject: | Re: Instead of pcase |
Date: | Sun, 10 Dec 2023 21:28:01 +0100 |
User-agent: | Gnus/5.13 (Gnus v5.13) |
Lynn Winebarger <owinebar@gmail.com> writes: > The pattern would match a let or let* form that has bindings but no > body. No - it matches where the body is the last variable. Not an empty body - right? With other words this case: #+begin_src emacs-lisp (byte-optimize-letX '(let ((a (+ 1 x)) (b (+ 2 x)) (c (+ 3 x))) c)) ; ==> (progn (+ 1 x) (+ 2 x) (+ 3 x)) (byte-optimize-letX '(let* ((a (+ 1 x)) (b (+ 2 a)) (c (+ 3 b))) c)) ;; ==> (let* ((a (+ 1 x)) (b (+ 2 a))) ;; (+ 3 b)) #+end_src Michael.
[Prev in Thread] | Current Thread | [Next in Thread] |