From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Alfred M. Szmidt" Newsgroups: gmane.emacs.help Subject: Re: Advantage using mapc over dolist Date: Tue, 03 Dec 2024 12:00:28 -0500 Message-ID: References: <87zflevbwm.fsf@neko.mail-host-address-is-not-set> <87o71su8jz.fsf@neko.mail-host-address-is-not-set> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35818"; mail-complaints-to="usenet@ciao.gmane.io" Cc: tom@logand.com, help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 03 18:01:41 2024 Return-path: Envelope-to: geh-help-gnu-emacs@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 1tIWHL-000988-V8 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 03 Dec 2024 18:01:39 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tIWGR-00079d-1w; Tue, 03 Dec 2024 12:00:43 -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 1tIWGF-00078R-RU for help-gnu-emacs@gnu.org; Tue, 03 Dec 2024 12:00:33 -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 1tIWGD-0005jY-Qf; Tue, 03 Dec 2024 12:00:29 -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=8n9SRAQS3uX8b97c47CSBPC7mS1RBuHT6fhlBt+5vtc=; b=Tt8DSUNLq5E6 mVWZbjbS9HGZou5Rxb7/nJ5E2moKpLxjiK69MVOD3ll01OPZ2BdrDxST3X0wVo5bkHPtpsbp6H/8S EGCmTavh9c0Ou617xDgISdXvPv4pzt2JsmIZJdC705tRnxetwukC3l7I00egf7Qhq+u/ChK8WeRyH ZLWPXuJ6d7F/sjWMwmVZVuWKlfwHjwVhNKKVCv3dL449DCvkTHCHnnG1Uwd1JPNqblWJ/EMI9ioU/ Nb877hzPlOK6zwglQskFzf0iTI6BA8bZDkeNna2mdtiF0sSJ/Lxhxt+OGGABNhxeeZmVqOj+I9ZV7 xUe0im3ploBGHJzyaNQMiA==; Original-Received: from ams by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1tIWGC-0003Ot-Mm; Tue, 03 Dec 2024 12:00:29 -0500 In-Reply-To: (message from Stefan Monnier on Tue, 03 Dec 2024 11:31:56 -0500) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148543 Archived-At: > on the contrary, it is better to use specific tools and avoid more > general tools when possible in order to lower cognitive load. Again, that's a personal preference. If you have to learn the more general tool anyway, then having to additionally learn the more specific tool may increase rather than lower the cognitive load. Then why not use COND*? Frankly, this is one of the main issues why Alan got fed up. I suggested adding ecase/case as proper non-CL macros a while back (resounding silence). There is no benefit in this code to use a very complicated macro when a simpler one existed, and has easy semantics. The usage of these complicated macros make generic and general code much harder to reason about. Renaming ecase/case was also one of those things you did without much discussion, and it has nothing to do with discouraging CL usage.