From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Advantage using mapc over dolist Date: Tue, 03 Dec 2024 11:47:56 -0500 Message-ID: References: <87zflevbwm.fsf@neko.mail-host-address-is-not-set> <87h67ku813.fsf@neko.mail-host-address-is-not-set> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18967"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: help-gnu-emacs@gnu.org To: Tomas Hlavaty Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 03 17:48:30 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 1tIW4b-0004nX-Ov for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 03 Dec 2024 17:48:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tIW4D-0003ln-F3; Tue, 03 Dec 2024 11:48:05 -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 1tIW4C-0003it-BQ for help-gnu-emacs@gnu.org; Tue, 03 Dec 2024 11:48:04 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tIW48-0003mL-Or for help-gnu-emacs@gnu.org; Tue, 03 Dec 2024 11:48:03 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id DE4E44454D3; Tue, 3 Dec 2024 11:47:58 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1733244477; bh=thqTaDWO9xotECYJNMIEgDf1g4d8pUD7wNF7AHG3VWw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=bnAW6btdQclS9T6dpvPsYLHLYqAwOU4eEgIS8hAEtmvptAv9ylaUMwbb5icVpNs0E oR3pVa9TX/3I6KnSmWxCVOgql2mLfSq78jwS9bzJOiqIiwWIFOkMA9UN5VGkFXroZi sYeETZyBdqUOCC5fCKqglv6UAjHw6F0iSP7MFVacJwLDhi2iTkQaal6CVn5dlzL8VP bq4CnTO2KR1uy9SFAz1dsLeiteowfGjJD3Jw+yYUTz5/vV6fmW4sEslC54ikrFeypF 2wpx18OotcTIstS31FNKpo0uoSdbP83mpJNT+9qL4nl3Zcvxt/NYX60a/umll27jT5 dDeuZfruhW1iA== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 3C54E445495; Tue, 3 Dec 2024 11:47:57 -0500 (EST) Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 2E58612041D; Tue, 3 Dec 2024 11:47:57 -0500 (EST) In-Reply-To: <87h67ku813.fsf@neko.mail-host-address-is-not-set> (Tomas Hlavaty's message of "Tue, 03 Dec 2024 15:59:36 +0100") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:148542 Archived-At: > I respect your preference and understand that you as pcase author would > prefer it everywhere. But whoever renamed case and ecase did not > respect other peoples preferences and people are now forced to use that > pcase monstrosity even in very simple cases. I'm also the renamer of `case/ecase`, yes. =F0=9F=99=82 This was not done to discourage people's use of it, actually the reverse. Yes, I know it sounds counter intuitive, so let me explain: Richard was strongly opposed to the use of the CL package because of its "stepping" all over the ELisp namespace. For years, this manifested itself in the fact that use of CL within Emacs's own code was generally shunned and tolerated only with (eval-when-compile (require 'cl)), meaning that you could use CL only when it could be compiled away during byte-compilation (by macro-expansion and/or inlining). So you could use `ecase` but not `some`. While some people were happy because they consider that ELisp is better off without those Common Lisp constructs, many others were annoyed, and it imposed obstacles to the inclusion of some packages into Emacs. Finally in Emacs-24.3, we reached a compromise which was to introduce CL-Lib, which is like CL except all the functions/macros are prefixed with "cl-". By its nature as a compromise, everyone both lost and won at the same time. Note that if you really really hate using these extra three letters, you can still (require 'cl). It's deprecated and may be removed from Emacs in some future release, but it's a very simple library so you can keep your own copy (and we may even put it up on GNU ELPA anyway). Stefan