From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: What's missing in ELisp that makes people want to use cl-lib? Date: Sat, 11 Nov 2023 12:16:41 +0000 Message-ID: References: <871qd8sfdx.fsf@posteo.net> <838r7g8pys.fsf@gnu.org> <87bkcbrgnr.fsf@posteo.net> <25924.21015.19614.951576@orion.rgrjr.com> <87bkc4jpja.fsf@dataswamp.org> <12da6bcb-1818-7fbe-12af-8d4607724332@gutov.dev> <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: 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="30761"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Dmitry Gutov , Alan Mackenzie , =?UTF-8?B?QmrDtnJuIEJpZGFy?= , emacs-devel To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 11 13:14:21 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 1r1msW-0007lI-MA for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Nov 2023 13:14:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r1ms5-0003jg-4Z; Sat, 11 Nov 2023 07:13:53 -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 1r1ms3-0003jH-Go for emacs-devel@gnu.org; Sat, 11 Nov 2023 07:13:51 -0500 Original-Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r1ms1-0000WS-M7 for emacs-devel@gnu.org; Sat, 11 Nov 2023 07:13:51 -0500 Original-Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-507ad511315so4164355e87.0 for ; Sat, 11 Nov 2023 04:13:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699704828; x=1700309628; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=CvULxLvh6QbK7MhcwuJ0/F2P1jAiJy3/Pwf8edlS/Vc=; b=husXyS5Rm9DCqlY/vWaNisap7qqEsgY2e5tDUDou0irZo0Zo5IDAPqNvS5UJMtcZCR oWYVGYE2Ezf80W1mEmvLlaWD5/0Ya9hTly4ZVjRza2vObV+g4FE4w1baC/Ph1H5x73DU wW2mJOsR5kmuCIFDgfIIzYZ4oVwEOzor/KWjYuQnGT0xw53TQwk6o/Hk9mj0zhKKc0Vc 0ZNBEXfVu7oOTatXi2TEJS62cZ+OsdDQcBXWTYccwOA4iOLdvIbnbzR6/TMlcOwypwV/ DnOXe6Sz2zTuwTZxUNRvEm1BGL8udRe8TTIyVaIJuaryj3FrD96ZJOIeR6mZgdGuG/Mz 8cFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699704828; x=1700309628; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CvULxLvh6QbK7MhcwuJ0/F2P1jAiJy3/Pwf8edlS/Vc=; b=MQSPrXVDgPpDPLOWOEJnc/RIq6xHshZ2ZixJGEKnmyjPBi68MqOPos1PkGWJZVeSKC EujnjYg7Sv+sYzoAcjqk6juX9AEUPl1sv3IpgWlCLi8WRVXaUfN0k5ANb+CP690p7HL7 LZv6SE0VvIOTdlbiMismDYRIjtgGUd7eC6NzJKe8kxvf+jGd/yc7K0l2bucLfgmE+W37 DCn4dGVEPB3ySCeGWps3UnzpE5qfp8LiQ6FklHaJctExkw1xPvoyCtb7uJtGWMEUUjz6 6np09Z3HOp8ylrt4n01oIBoYcWQOsXhmSouyyjMW7ePIHyacaZqH6IaEbEdM9AdRobCE ETvA== X-Gm-Message-State: AOJu0YxPWCVB/Jx4Gwwdi4ZCPSMapLjAV2KoWTsnO1nShqAbpuJsMsna KVKspwmsW8RpzhmiYczLX6oMb74/2iv3ed0Ab2w= X-Google-Smtp-Source: AGHT+IGhMOEAfQZ2gBExBygLUdXUcAIIrNuABb6ojoyIVkGZD7v7rFcMW6KkdhDHlbNX/3H5A/OT/b6zampd2YhHZ8Y= X-Received: by 2002:a19:8c4e:0:b0:509:4767:57f9 with SMTP id i14-20020a198c4e000000b00509476757f9mr1248209lfj.55.1699704827449; Sat, 11 Nov 2023 04:13:47 -0800 (PST) In-Reply-To: <87il69qe0h.fsf@yahoo.com> Received-SPF: pass client-ip=2a00:1450:4864:20::131; envelope-from=joaotavora@gmail.com; helo=mail-lf1-x131.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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:312547 Archived-At: On Sat, Nov 11, 2023 at 1:23=E2=80=AFAM Po Lu wrote: > > Dmitry Gutov writes: > > > 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. > > Hmm, reading its doc string, I think a more illustrative name for > cl-set-difference would be cl-set-complement. No, it's called "set difference" in CL and in other languages for a reason: https://proofwiki.org/wiki/Definition:Set_Difference > If the order is significant (it seldom is), You don't know that, of course. > Or alternatively a local variable can be maintained holding > the last cdr of the list, and insertion performed on that instead. choo-choo! Jo=C3=A3o