From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: pcase-if-let? Date: Fri, 30 Mar 2018 08:07:17 -0700 (PDT) Message-ID: <044ac154-a16f-4ff8-9cad-8e5a9a75ed7e@default> References: <871sg3eqi5.fsf@web.de> <0e8139b0-b59c-1d7e-29db-66170858f8ca@lanl.gov> <87woxvd947.fsf@web.de> <87605filw6.fsf@web.de> <60dc117a-7ee2-42d2-acbc-49dae9ec6ae1@default> <871sg3ijgf.fsf@web.de> <87woxvh2s4.fsf@web.de> <87d0zm2uts.fsf@web.de> <86eb8826-4460-4913-82d4-4be9191d8be5@default> <87lgeatais.fsf@web.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1522423222 24890 195.159.176.226 (30 Mar 2018 15:20:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 30 Mar 2018 15:20:22 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 30 17:20:18 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f1vp7-0006Dh-Py for ged-emacs-devel@m.gmane.org; Fri, 30 Mar 2018 17:20:13 +0200 Original-Received: from localhost ([::1]:45794 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f1vr9-000232-MR for ged-emacs-devel@m.gmane.org; Fri, 30 Mar 2018 11:22:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41228) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f1vmU-00060o-GF for emacs-devel@gnu.org; Fri, 30 Mar 2018 11:17:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f1vmR-0006xv-6V for emacs-devel@gnu.org; Fri, 30 Mar 2018 11:17:30 -0400 Original-Received: from aserp2130.oracle.com ([141.146.126.79]:35968) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f1vmQ-0006wq-Uu for emacs-devel@gnu.org; Fri, 30 Mar 2018 11:17:27 -0400 Original-Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w2UF3s9U098383; Fri, 30 Mar 2018 15:17:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=V4+sVP5CRA24grJfNDgr+ja4sh6Ifi3PC1EdXvEko1w=; b=Ar+cSHzqM5MOWa9nxnm7uOpFnUhrqIEvX0tr1X7/YhgCYuJH3ZmLc7TxCBmsLU1kLEbt +em8/PKAc6xsGUMFzMX8AsvnQzqa5iy+qoBWuEbCgzGtCwBmzUb79/XbfYZHKCa9W/8k ZE1/5REhmOXhKUAijUpNpyD90RubEuDhLNkeaHQ0FjG19KxZrfhwp2iI6nBPkXFnZwsp MvOYCJYPXMK+K/kdBDFZJPjKszQp5GTvYtM+aJDzvJXfKCZNV0psIbCjD2XygBTQs2Tv DQpCwdCXwpmTEiZlflWjoIHmODxMpCwRAb/nHBNz2lMOaBjJ072Mgk13Dse+GXQKU+wU DQ== Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp2130.oracle.com with ESMTP id 2h1qbn057k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 30 Mar 2018 15:17:15 +0000 Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w2UF7JT1010900 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 30 Mar 2018 15:07:19 GMT Original-Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w2UF7Jl7026486; Fri, 30 Mar 2018 15:07:19 GMT In-Reply-To: <87lgeatais.fsf@web.de> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4666.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8847 signatures=668697 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=918 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803300158 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 141.146.126.79 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:224181 Archived-At: > > It's not that this one is about matching and the others > > are not. (And this one is a form of "if".) > > > > That's why I suggested something like: > > > > `if-all-match' (or even just `if-all') > > > > Am I wrong that what is important here are "if" and "all", > > not "matching"? (I meant as compared with the others, as mentioned just above.) > As we want to drop the "pcase" suffix in this case, shouldn't the name > tell that this is about matching? Else, "all" is IMHO meaningless. > OTOH adding "all" to the name would be ok for me, since it's not obvious > how the clauses are logically combined. Yes. Although even a name prefixed with "pcase" also says nothing about matching. `if-all-match' is what I suggested and would still suggest. But there are no doubt other good possibilities.