From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: pcase bindings in patterns with complicated logic Date: Fri, 19 Jan 2024 22:39:44 -0500 Message-ID: References: <87il3xt38w.fsf@localhost> <875xzwjta2.fsf@posteo.net> <878r4rsyyt.fsf@localhost> <87r0ijj48v.fsf@posteo.net> <871qajsx5z.fsf@localhost> <87le8riyvp.fsf@posteo.net> <87r0ihl8lr.fsf@localhost> <87zfx2943z.fsf@localhost> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5990"; mail-complaints-to="usenet@ciao.gmane.io" Cc: thievol@posteo.net, emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jan 20 04:40:35 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 1rR2Dj-0001IJ-3V for ged-emacs-devel@m.gmane-mx.org; Sat, 20 Jan 2024 04:40:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rR2Cx-0002VF-3L; Fri, 19 Jan 2024 22:39:48 -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 1rR2Cu-0002T8-Kj for emacs-devel@gnu.org; Fri, 19 Jan 2024 22:39:44 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rR2Cu-0007yG-8V; Fri, 19 Jan 2024 22:39:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=oT4U85rlaZ8Z4vM8H0fEaDFOVNJZfoogMF2ImvGvBgU=; b=f4rwN7wl+ocL aQcTmtq4wqNGtBlqNIGV2AynphxxARdU7nY4v3nq4gKJNQW3dfWrGXHZvkqm3H4HdCjMJncqex2hH AkWjp29wRr/KA/8pzpCXHu/Djjh/n9NsUvyJpo0HDvT7o9NPAOOXxy/JBgABEIT1lHs5VvWUdABMV a+RHL5hWhAJTp0Vv1ovjbynsy3C9QpN2V+g93gMnKLAJvd+uI2y5C4hqLAZtmplpcwY8DbKNDyrjw eO3shVwbS0vhY9ETtg173bwa9czXgonTXPwhfCDVO5IrH1yP5S4fqxX58x8oZ1zKBoAnEu3p6yCBE jX8vpg4epNxYSzClBxoN2A==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rR2Cu-0003Ri-0x; Fri, 19 Jan 2024 22:39:44 -0500 In-Reply-To: <87zfx2943z.fsf@localhost> (message from Ihor Radchenko on Thu, 18 Jan 2024 13:13:20 +0000) 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:315128 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > My question was whether cond* can be used to implement an equivalent > match as in my example above. The `or' pattern should do that job. In what way is it not sufficient? AFAIU, cond* cannot match against multiple > values at once. With the natural meaning, yes it can. Perhaps we are miscommunicating. Could you explain what "match against multiple values at once" means to you? -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)