From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: arthur miller Newsgroups: gmane.emacs.devel Subject: Sv: Better documentation for non-binding clauses of if-let and friends Date: Mon, 11 Nov 2024 10:23:09 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_DU2PR02MB10109A2AB657AC0FD003A231A96582DU2PR02MB10109eu_" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16814"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "emacs-devel@gnu.org" To: "Alfred M. Szmidt" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 11 13:08:42 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 1tATDm-0004GU-Bm for ged-emacs-devel@m.gmane-mx.org; Mon, 11 Nov 2024 13:08:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tATDJ-0000tx-9a; Mon, 11 Nov 2024 07:08:16 -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 1tARZi-0004tH-K3 for emacs-devel@gnu.org; Mon, 11 Nov 2024 05:23:14 -0500 Original-Received: from mail-am6eur05olkn2105.outbound.protection.outlook.com ([40.92.91.105] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tARZg-0005XV-SA; Mon, 11 Nov 2024 05:23:14 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=KRXuSETp9pU44RWA+7VKXPS+3QGDOgN7wRgqDb31d51xFqrwfH595RdRwy5BPqsYDk6IXp99UbebvE8ABy5TzHR9ms+SQbzNUhhO/zDgRkZ9mTo+cqU1pueeujQNGRWNh6g9GDVPAIAe4skqyeG5aCtrhiQPZ22ObuGNXQi9Zze11JpRbwh+oQACnKbF0Fgkn+jXaBhi/zk/4jINRzJj1BrBLFYwz1G2iEHpKSyDc5NA1rhOQfd+JaYbG9c5H/xauUb0W6CEcZpRyzmryPxywtRFzLvebatjHec9jDwcaooWkKa5GmvyQQh/fYovmitsm5ujYmwECjNjdfralQtMxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Q6DJ4BCvRy2GvEA/OQ24oBg8VjJUuHSc4PwF1Aiejgg=; b=ZPkF8MTtKZP1ivddFnsNwFufZBlgcuJHZopNNaok7MtmL60hhCeA6RKmf+qPumQfJP5SYGwk5fJnUPrXX7JHHryZ20TTdO1W2p2u5N7EzENSvScqsKsRtWJ4+duaLa5CD7MumPe87XcksDGvAj5CWTF/+so7IICZ3MW5PXTuqLqAX8lrQSh9Vqj3h8CdSP/XjNGj0y3UhVnKVKrC2VCgKCdULb7GBciQoUPB4i4fFbNYYOfXAKOfJ0UW2Hgiuy2SehxkiKC4oX7DS/oPW7Dew0pTls+HukkH3/gudCmWPD9YYwMJra/fip7n45+DtzbISznUscy0DfgSaNKKmDFS5Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Q6DJ4BCvRy2GvEA/OQ24oBg8VjJUuHSc4PwF1Aiejgg=; b=ErvMfC0m3gWeBi59hcmF5c7iGcubihL2KTbaGvtYXNfhN60ky9BbjCWK1co1IWEo5SQiwOLhSmYOoIbWt4Rb85jcdd16OZW1RFxMQ0P1xqC/KSI9u+TwZornCJWC/XfMWxZMG5iK546hGV9VH+PkUo4TmiftiPL9tlNRDqPnJwKv82wFxpiQfTCjz4Dbg6FEb10JJMcEk4aD5e7AckWYCa2IC62ReieQku8P5ZMZPvejF5jWj7M6D5akJujxjuid0EmSldbnf/asjSXp05vFVOINOfqIxrvvmGqs5uYp3S6yLtJWRIxUXxXrFYXA1VWkt/stwBAvTEOza+widZyadQ== Original-Received: from DU2PR02MB10109.eurprd02.prod.outlook.com (2603:10a6:10:497::14) by DB9PR02MB6889.eurprd02.prod.outlook.com (2603:10a6:10:21c::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.28; Mon, 11 Nov 2024 10:23:09 +0000 Original-Received: from DU2PR02MB10109.eurprd02.prod.outlook.com ([fe80::f3c9:d4cb:290:d487]) by DU2PR02MB10109.eurprd02.prod.outlook.com ([fe80::f3c9:d4cb:290:d487%4]) with mapi id 15.20.8137.027; Mon, 11 Nov 2024 10:23:09 +0000 Thread-Topic: Better documentation for non-binding clauses of if-let and friends Thread-Index: AQHbNBvkyjs2kUrpBUuw3W5NGKnl8rKx2EsvgAAGhzg= In-Reply-To: Accept-Language: sv-SE, en-US Content-Language: sv-SE x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DU2PR02MB10109:EE_|DB9PR02MB6889:EE_ x-ms-office365-filtering-correlation-id: 29b3be97-059b-45b0-ea02-08dd023ad72f x-microsoft-antispam: BCL:0; ARA:14566002|8060799006|15080799006|7092599003|15030799003|8062599003|461199028|19110799003|440099028|3412199025|102099032; x-microsoft-antispam-message-info: =?iso-8859-1?Q?V9M+IVDo6ctG9MjmNmxtNrrDhBZBGPcw/vIye7kw+NDEW/v8rvFIs0UrS8?= =?iso-8859-1?Q?Xg3vEzs9MT4lLnJ+j2qnoK6+snXeLxEOqnWyxHQjlLtWJRJqp3FDSRz15b?= =?iso-8859-1?Q?NPXMW42k2lxAYEJT9db8Wehfv92WMgeBeYbbJ0Sy/nwunM1GMqrHx+/s1v?= =?iso-8859-1?Q?SkIhGZnI9bOvufmHUJc5Ex/v6m/nVItAzJNtB7cjXd4/MroQfRo6idlMoi?= =?iso-8859-1?Q?kZA2nvjcg64PbQqENQqk5nPodZPJd+Ab6YJ7TxMvBXvJ2ocqv+prL6pA2A?= =?iso-8859-1?Q?zMzMJPm8z70oXJxu7lr8IqfcRuKPsrxQGvxrBz4yUbhszvjjs1LAzdAEG/?= =?iso-8859-1?Q?k6PRQM84UxAsfLiAQvqZqBIyGSoHdDviJX18M8HvXcq2Qn736bFaKogZe3?= =?iso-8859-1?Q?6Wl8+58wVCdwCqrH2ks60c/Rd6hmIbmFR3VaG2kA7WvpAzrOjbGKAsPUYM?= =?iso-8859-1?Q?s1xfE/pS08ljnyfr7trGNTpLvpjizCAfKqkOJ2US7h4NBz0DU3gDVF/8bk?= =?iso-8859-1?Q?pGfv9NIIq2UZqqXnY+mh4ePjvAaeDd/dn78KkNn0Y7qq+b73x5LUcnejDc?= =?iso-8859-1?Q?tUciB5MRdTRsJmGir5+xYvqQVrfb97G/sTlrb2gXAmnK+q7BKzhw8w4v+2?= =?iso-8859-1?Q?QL4 x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?fPGCdS8winOwFemxXeONOwOgwFMLn1xuR72tnzGl7Encr9ZYvQSqV2jDtY?= =?iso-8859-1?Q?rhMOHebtmyzfRXEhjwWUgKVUcOcSMK+DnJ64nQEZN5144uysa+b0KwW6qz?= =?iso-8859-1?Q?K/gtEcvermBX0Y6clTEVNC+VH+Tss78V3o+1cHOOwhtIevEkVG1wKkU8C2?= =?iso-8859-1?Q?dAiLSmddEWP9m93ojqlzgsG1MlwThhUGdRYG80LfBWDUNlmqVNZ+M/RKAF?= =?iso-8859-1?Q?XIVVJaI6LSeVE6pri7sUTCtwRlc6BgX2fkZsk/ME2zE74Yvt5jSvXQMp9R?= =?iso-8859-1?Q?xJvP5bU5JgmNCGBqOV3nDfH45ILexeyfy5Lr9Qk/pT0j1f1UA8rrJqyYLY?= =?iso-8859-1?Q?eFW/8CfnRon85BK0dnderb/2YOyhYPTSp17h8dkHDRoMx2Pfev18M2KO/n?= =?iso-8859-1?Q?E7s3z2TlMz+oRk1t2caBVz0gVp7m11EaIV1yo09Ner6X6zvU0PtHS4YMgn?= =?iso-8859-1?Q?B/7313j/bqhoAkiJ0J+x+AERVH6+rq1qhrO37Pf8FthE0u5J9UmjaE+pHw?= =?iso-8859-1?Q?5/JNIBkVtyjouojupxhBaQhtuWtra6mstokcGo5olP7jeDJ0K5lCgR3LGA?= =?iso-8859-1?Q?y4psyZvE5+6dn1qw7xtCSzqGNotq9brrnoPASS/s6nC6W6dokxxL5Xm7Gm?= =?iso-8859-1?Q? X-OriginatorOrg: sct-15-20-7828-19-msonline-outlook-12d23.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DU2PR02MB10109.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 29b3be97-059b-45b0-ea02-08dd023ad72f X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Nov 2024 10:23:09.7568 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR02MB6889 Received-SPF: pass client-ip=40.92.91.105; envelope-from=arthur.miller@live.com; helo=EUR05-AM6-obe.outbound.protection.outlook.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.743, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 11 Nov 2024 07:08:07 -0500 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:325401 Archived-At: --_000_DU2PR02MB10109A2AB657AC0FD003A231A96582DU2PR02MB10109eu_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > That is the gotcha that got me: it says SPEC is "like let*", so this "-= let*" > in the name take my mind to believe it established ordinary let*-bindin= gs. > However, in while-let, these are not ordinary, but read-only. So they a= re > not the same, since they don't obey the ordinary behavior of let* bindi= ngs. > >I agree, but the question really is what should be done -- either >satisfy one camp or the other. My guess is while-let can't go away since it is used in many places in Emac= s already. But the docs and the manual can be updated and clarified. >I personally do not get what one gets from using WHILE-LET -- the >construct seems forced, and very rare to use. With the facit in the hand, I agree with you. In practice it saves some typ= ing in well-chosen contexts. But question is if it is a good practice to have a construct that seemingly looks like a general let-construct, but really is = not. --_000_DU2PR02MB10109A2AB657AC0FD003A231A96582DU2PR02MB10109eu_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
>   That is the gotcha that got me: it says SPEC is "like let*= ", so this "-let*"
>   in the name take my mind to believe it established ordinary let= *-bindings.
>   However, in while-let, these are not ordinary, but read-only. S= o they are
>   not the same, since they don't obey the ordinary behavior of le= t* bindings.
>
>I agree, but the question really is what should be done -- either
>satisfy one camp or the other.

My guess is while-let can't go away since it is used in many places in Emac= s
already. But the docs and the manual can be updated and clarified.

>I personally do not get what one gets from using WHILE-LET -- the
>construct seems forced, and very rare to use.

With the facit in the hand, I agree with you. In practice it saves some typ= ing
in well-chosen contexts. But question is if it is a good practice to have a=
construct that seemingly looks like a general let-construct, but really is = not.
--_000_DU2PR02MB10109A2AB657AC0FD003A231A96582DU2PR02MB10109eu_--