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: Code for cond* Date: Wed, 24 Jan 2024 11:30:03 +0000 Message-ID: References: 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="6547"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rms@gnu.org, acorallo@gnu.org, emacs-devel@gnu.org, monnier@iro.umontreal.ca, eliz@gnu.org To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 24 12:31:04 2024 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 1rSbTE-0001TK-7J for ged-emacs-devel@m.gmane-mx.org; Wed, 24 Jan 2024 12:31:04 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rSbSe-0007iQ-Sk; Wed, 24 Jan 2024 06:30:28 -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 1rSbSY-0007h4-2t for emacs-devel@gnu.org; Wed, 24 Jan 2024 06:30:22 -0500 Original-Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rSbSV-0000HM-N2; Wed, 24 Jan 2024 06:30:20 -0500 Original-Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-50e4e3323a6so6664251e87.0; Wed, 24 Jan 2024 03:30:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706095815; x=1706700615; 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=YO5OWSRw1WZDDC89Lj1RrIXNMl9YFepknzooJVNLLKY=; b=kbM0VMiVNM2uODMDuTMPFKVUZGIuGdMj+emATJPJoilFwsNz9dAGSH2BZYIT+1Wexj 6Ae6pyHzfqkbiFJuqk8Ny4armqhObmVn27pin+/kz/j17ptG6HjvJ9aY+z5rRa+Qr8bf z62GP8QhSs/jd8krQKdbRt+yS6iqflI8Yyd0KbhrmMZZUJXTfysydGBz/KEj4grfAtEs hRCOVQ4T3lR8g2DvvpFl26ncTMuCDz4cQ+GWqm2BT9SfQq9TG6lTV7PbdeiVebUNu93P juA4LSls0GTWn9gF/v8WBD1vW7vW0lVN/cXSp9zd5Lh/bHbSJVIbqZG1gvdX/sI2exNl hJxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706095815; x=1706700615; 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=YO5OWSRw1WZDDC89Lj1RrIXNMl9YFepknzooJVNLLKY=; b=ucS7f0g0SzouiwCHXhbZz/hEUPJxUCDChlewjCmK/t79xMMyKxdGGSktTmjLTzupCw HaR/F1y/TM0chAcOWsT1iMD3VzIHKcbfr5Kxj47z0DxfY7UrDoTCXzUMeqqC2ucDj6Ge TiAc2YZO032uFhgHNGXq8kxxGCr8ApkwSvCr1WanABaDlGxoHQbXyoR69oLGtJ6MLrmp BHK7vh1vfBnXHJneXm52lAe6QX4PHtHJAaUpExskyiYFwryoKjiOerqZ1xVECdn85RSC QN8D2yA8ExjtbAy2a3rZMr47T8UMvM2c/lUKoh1pjdH+ZgrAZ7aJgzvmqSsVlz6Cp2pW Utnw== X-Gm-Message-State: AOJu0YxLuTn0JnB1uAbxOEYQjpnpDQIleTVQQ7c4Gp7jlLF86Wynuk8n KBUwcm5VXfoKyRaYS/z+cJHN8+UxciAXIi0O74N4l8uAHhgvagjopVIMq8noNF58Kn7a22azCfX BGhT3EYP0hcHGuR78gPYIHVF3I34= X-Google-Smtp-Source: AGHT+IE5HPQmU8R5vfYNhMVKgxOiwyf46ni9ZAycUzJY4sjqSxZmWg/uV92gkWB4Clxhg+4Lz4WnEGHdKfuPgdyl/ro= X-Received: by 2002:a19:4f05:0:b0:50e:7b9c:4d97 with SMTP id d5-20020a194f05000000b0050e7b9c4d97mr654535lfb.8.1706095815320; Wed, 24 Jan 2024 03:30:15 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::134; envelope-from=joaotavora@gmail.com; helo=mail-lf1-x134.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:315290 Archived-At: On Wed, Jan 24, 2024 at 9:48=E2=80=AFAM Stefan Kangas wrote: > We will end up with `pcase' for those that happen to prefer that, and > `cond*' for those that happen to prefer that. For me, as a maintainer, > I now have to know not one, but two relatively complex macros. While I > realize that ELisp has been largely designed in an ad-hoc way, > consciously introducing such needless proliferation does not strike me > as a particularly good way to design a programming system. +1 to everything said. And if cond* does show up somewhere, please really implementing its interface in terms of pcase, whenever possible (it seems it is possible in most if not all cases). > In summary, I recommend installing `cond*' as a new package on GNU ELPA. > This is a good way of exploring an alternative version of an existing > macro. +1 here, too. Jo=C3=A3o