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: Tue, 14 Nov 2023 23:52:42 +0000 Message-ID: References: <8734xetjkk.fsf@yahoo.com> <87cywhsrcf.fsf@yahoo.com> <87cywgx1z0.fsf@web.de> <83wmuowwp3.fsf@gnu.org> <8334xcwank.fsf@gnu.org> <320999cc-6c83-2315-0044-cc0403400af3@gutov.dev> <9ab5d2bd-a648-cae0-a4a7-ae86be10af0f@gutov.dev> <87r0kuqxbf.fsf@gmail.com> <54e115a2-fc36-3056-a030-0dbf32416ddb@gutov.dev> <43f290b0-4119-597b-c89a-0fb4c7db1665@gutov.dev> 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="4201"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?UTF-8?Q?Gerd_M=C3=B6llmann?= , Eli Zaretskii , michael_heerdegen@web.de, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 15 00:54:53 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 1r33F7-0000uA-Pr for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Nov 2023 00:54:53 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r33DS-00074G-4c; Tue, 14 Nov 2023 18:53:10 -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 1r33DP-00073G-MZ for emacs-devel@gnu.org; Tue, 14 Nov 2023 18:53:07 -0500 Original-Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r33DG-0005qc-TO; Tue, 14 Nov 2023 18:53:07 -0500 Original-Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-507be298d2aso8307382e87.1; Tue, 14 Nov 2023 15:52:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700005975; x=1700610775; 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=a5tsuasg7qY6qZyt0E+/gFspb+8AOae/YCZqSr6Mh7g=; b=SBjNJFR6ASIPConljqBRO203fdok0R6YmnIyzJfqXPvALxw3147l3E9jw4c6q3XfBZ /PFVj1az72vzQ5s3bR3C8bq+dQC6aF3U+TzjLOEzSRqXDit2WIJnQGI6H+vkA7M1ifO1 ejV+4s0Xk7v31fGdaSbonRCeajzyZ7mW6rtMS+7kSJbgGKw9+SWNvBhuD4IIDZ6qK0UW T+/N2Q3Orbb1JxrjGbueQWR7BH3lPoDS2GwdbfbnKlpJqwiVlYlHch4xwQgiIR0+v56f WuQv+jLL+ajs7/Yt1biHtNznvQKNTHSJnsRf9mEmutFUeGKXrU0kEMF2KVM+MaoRWlX+ Beqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700005975; x=1700610775; 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=a5tsuasg7qY6qZyt0E+/gFspb+8AOae/YCZqSr6Mh7g=; b=st5lwHX5OjibwqM/hgCgm7yID3JVz05mOqZ5mDBbisfjKyZA7fRT5XY6YCUoFcT0fe 0d8O4qRIoasR8+RztLm0+PAAwr5Pyz1xbvtVjAjUpQha8ZIoD3hTfM0z9jnhI/tTzESs yGQFmgug4MFr3J6bdTMXFXMPAiey/SdzYfk3d1eieF6Ux4fZwp9CgZEriGmGA+e6GuCY PH2mhvLePqHZ7pSfQ1l+7LWF++T0HHTSJd6VJSxUSGzxwSepCzuFGjout2uSPmWXnaqd ylNmirvWmlCVgD776rtqHsndaHoUO3OKT42V6/OZjqx8Cro230urGj7MKLIKxDFwl1mP Wn/A== X-Gm-Message-State: AOJu0YxEG7kOZcTk2lhGrlow/Bv0fGrfQTogNmUJ6wxTJd8YV0ETrU81 VKwTuf5T/j0eStvp2TlR4sx3k1aMNi+k0DAC0EE= X-Google-Smtp-Source: AGHT+IGvYkqz2fPgmip2XU1F83pgT0/3YbMk4WYLrQmnkR9wPttLswN57sLiUbqvnbap8Xzhp3GEks6Q38aZ8mig5Fg= X-Received: by 2002:a19:5e19:0:b0:500:b42f:1830 with SMTP id s25-20020a195e19000000b00500b42f1830mr7363419lfb.63.1700005974669; Tue, 14 Nov 2023 15:52:54 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::12b; envelope-from=joaotavora@gmail.com; helo=mail-lf1-x12b.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, SPF_HELO_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_TEMPERROR=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:312742 Archived-At: On Tue, Nov 14, 2023 at 11:11=E2=80=AFPM Dmitry Gutov wr= ote: > Allow me to try to answer this again: special voodoo is probably not > allowed. What the specialized methods are supposed to do is implement > the same logic (described in the generic function's docstring) but in a > more efficient manner. But isn't my method just that? Let's say the methods's is simpler, like this: (cl-defmethod seq-contains-p ((seq my-voodoo-seq) (elt (eql :secret-voodoo)) &optional _tesfn= ) ;; my-voodoo-seq always has :secret-voodoo. t) Hard to be more efficient than that, right? Then I could use (seq-difference '(1 2 3 :secret-voodoo 5) (make-a-voodoo-seq)) And get any voodoo out. > This is not documented, You don't say? :-) i think we should get started on documenting all these ad-hoc rules (sorry but in this case they are quite literally ad-hoc). Better than nothing, I guess, since as to actually enforcing them, I think that train has left the station a long time ago and is now in a voodoo swamp in monkey island. Anyway, I'll be back with more custom sequences soon. Jo=C3=A3o