From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.devel Subject: Re: What's missing in ELisp that makes people want to use cl-lib? Date: Sat, 11 Nov 2023 07:11:29 +0100 Message-ID: References: <87il6bt4z0.fsf@yahoo.com> <87y1f6s3eb.fsf@yahoo.com> <4b3eacb7-9b0b-7167-d9ef-4d06167b5411@gutov.dev> <87il69qe0h.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OHAEL4s2HeJP+aso" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34666"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 11 07:12:22 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 1r1hEE-0008nr-8M for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Nov 2023 07:12:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r1hDW-00074l-64; Sat, 11 Nov 2023 01:11:38 -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 1r1hDR-00074F-W3 for emacs-devel@gnu.org; Sat, 11 Nov 2023 01:11:35 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r1hDQ-00048l-3Z for emacs-devel@gnu.org; Sat, 11 Nov 2023 01:11:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Iqu4adG1tbVrLPQDviDKv6yt8gWvomS2YaYtqPu8b2k=; b=k2mCK+6U6q2EQR4ZNywac21oPQ MZHYD/vo2yvKl/VHRZbs53xcmGe9+F7gRNkhBc6jdsZYDnNU3QAI+IH1D8v4bEUma7zdW5ysggOqZ IxKVfglCFZ8MUwgumgd1uahjq5Admg012Jhyh4Fr3XpwKF85AUfxStVKERhGvJ71cUNQJ51tEFDdP qjsulfW45txcNj4qg0cy+l1g7KIQCKSQk4geqYdqDuiCBJna0K7SzbXqJe2lpQXaW4p5MbfqNG0MG tMeKxYOQVp+fVuhNUvLsQ3ztATAZa/Ze9dWAlSA7cupMpo9FHuDBQDiTzS7wmx3W9HHgEX3xPWUb2 zhvE3Y8g==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1r1hDN-00056A-4S for emacs-devel@gnu.org; Sat, 11 Nov 2023 07:11:29 +0100 Content-Disposition: inline In-Reply-To: <87il69qe0h.fsf@yahoo.com> Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:312525 Archived-At: --OHAEL4s2HeJP+aso Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Nov 11, 2023 at 09:23:26AM +0800, Po Lu wrote: > Dmitry Gutov writes: >=20 > > Just to take this example, there are about 2 major bugs: 1) the list > > will come out reversed, 2) the code does XOR rather than subtraction. >=20 > Hmm, reading its doc string, I think a more illustrative name for > cl-set-difference would be cl-set-complement. In this case, the second > loop can be removed. Yes, "difference" is, surprisingly, ambiguous. Your implementation is usually called "symmetric difference" to avoid that. Cheers --=20 t --OHAEL4s2HeJP+aso Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCZU8bCQAKCRAFyCz1etHa RsSnAKCAppMR3PVO3/Ivx/frr6zamzlA0gCfdiQuusnYvSYits+VA+HIusRMO50= =PlY5 -----END PGP SIGNATURE----- --OHAEL4s2HeJP+aso--