From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Instead of pcase Date: Sun, 10 Dec 2023 10:14:09 -0500 Message-ID: References: <87fs169mjj.fsf@posteo.net> <093f11a1-57c2-5e56-d39b-26fef1c67cbb@gutov.dev> <25942.25061.217864.329049@retriever.mtv.corp.google.com> <87zfzdcz6z.fsf@posteo.net> <87zfza2aq2.fsf@web.de> <7nmsv9zq6u.fsf@ecube.ecubist.org> <7nv89x5tsi.fsf@ecube.ecubist.org> <87o7focuf5.fsf@web.de> <875y1r10jr.fsf@web.de> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38622"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 10 16:15:18 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rCLWX-0009mj-Tm for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Dec 2023 16:15:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rCLVT-000412-5c; Sun, 10 Dec 2023 10:14:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rCLVS-00040u-F6 for emacs-devel@gnu.org; Sun, 10 Dec 2023 10:14:10 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rCLVR-0003Q8-Vt; Sun, 10 Dec 2023 10:14:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=Rmp/8bYu6FbI/pHknDcRaxLRn3dOxT8Afb6iI0rbB9A=; b=Vnc0RTR+Z7Zr 0aIPYh1NSJQ1ZH9hfk1oVYA0nw7ZnBjo7zuYjt12rqPNlE5O0SfHEN7VJbdF9ZPZOHeNUpKkjaLGr BFAnNDnUSBqsSve7ZoBBLp0AgAc88DVcOWkuWJjKpVz8VUl5r8l7OSFtZbFn+zsLmSAcWrCfgr2tv eTauZe50wz24/4S4xi5obAvX7ex+D12l8I6FVInSeVErhICdKrdE62KhK8xLSVB8btErKukeXCFLr g1g7UfYX13isegszJtgU9mFPkL6pfFDg2yhjXtwNCifQI8IKPBXi2N4gshO3I65vQx99ogpO11nSl fK6BR0kLg9YQmldlvsxOaw==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rCLVR-0002OY-7z; Sun, 10 Dec 2023 10:14:09 -0500 In-Reply-To: (message from Richard Stallman on Sun, 26 Nov 2023 22:14:43 -0500) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:313677 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] I am trying to rewrite `byte-optimize-letX' with cond*, but I cannot understand its current definition. Specifically, I can't understand this pcase clause: ;; Body is last variable. (`(,head ,(and bindings (let last-var (caar (last bindings)))) ,(and last-var ; non-linear pattern (pred symbolp) (pred (not keywordp)) (pred (not booleanp)))) (if (eq head 'let) `(progn ,@(mapcar #'cadr bindings)) `(,head ,(butlast bindings) ,(cadar (last bindings))))) What case is it meant to handle? What does that case look like? The comments cited in that code make no sense to me; I don't know of any use of `let' or `let*' in which the body would be one of the variables, and their doc strings don't describe any new usage which would make that meaningful. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)