From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Newsgroups: gmane.lisp.guile.devel Subject: Re: Add internal definitions to derived forms Date: Wed, 25 Jan 2023 16:09:48 +0100 Message-ID: <87y1pqslab.fsf@gnu.org> References: <2f38c5ea-0cb6-494e-b680-70b39c3291fb@app.fastmail.com> 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="20944"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Cc: lloda , , Andy Wingo To: Linus =?utf-8?Q?Bj=C3=B6rnstam?= Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Wed Jan 25 16:10:25 2023 Return-path: Envelope-to: guile-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 1pKhPs-0005Dy-RU for guile-devel@m.gmane-mx.org; Wed, 25 Jan 2023 16:10:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pKhPO-00077E-Ly; Wed, 25 Jan 2023 10:09:54 -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 1pKhPN-00076s-BL for guile-devel@gnu.org; Wed, 25 Jan 2023 10:09:53 -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 1pKhPL-0007lA-J4; Wed, 25 Jan 2023 10:09:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=6b8yrkAU5W5Ry2XWzBJdMGsKCQvmf03x/vYcSvBC58o=; b=EMJg5IYkpoXsmKodWgg6 eQ1ppxIUpWBmStmeidN+Ut1dycuvNnYJqMaOLcWSgoAFgjjeG/E2p+mnTNj0IlZFIDXm1vuTbBY79 84dH0znkRreSZKqcDOdp0+ppwAw0icw+tbtFMdmNrkK+wL1iVpjcKa1UcZI4NpCLa/TeOB6+3onDQ 7dJQbTeptEOq1PSzkX///t4F0ykqmUkqc4LbL+vHKgONrbVdl2cRFphhoA+92Lu6PvAkIGfKNqCFo cTU15fjWzByBAcrCh5wuJZ0kAw3hfwJzDM1ZyWoaTWmMpuY3D2MbxwUYZ2Mhcm5zsACBANjcI9pqW foYAlJ9rDQi0dA==; Original-Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pKhPL-0004VB-0C; Wed, 25 Jan 2023 10:09:51 -0500 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Sextidi 6 =?utf-8?Q?Pluvi=C3=B4se?= an 231 de la =?utf-8?Q?R=C3=A9volution=2C?= jour du Laurier-thym X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu In-Reply-To: <2f38c5ea-0cb6-494e-b680-70b39c3291fb@app.fastmail.com> ("Linus =?utf-8?Q?Bj=C3=B6rnstam=22's?= message of "Wed, 09 Nov 2022 16:32:29 +0100") X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.devel:21633 Archived-At: Hello! Linus Bj=C3=B6rnstam skribis: > This commit adds internal definitions to derived conditional forms, > with-fluids and and-let*. This means the bodies of when, unless and > with-fluids, and the clause bodies of case and cond behave like a > lambda body. > > There is no performance hit since guile optimizes a (let () ...) > without internal definitions to a begin (i.e: no new lexical context > is created). Daniel pushed this as 764e3614b8c13de604399572a67d071621e9ca21 in =E2=80=98main=E2=80=99. I had completely overlooked this thread but I wasn= =E2=80=99t quite sure about it, so I did not include it in 3.0.9. The reason I=E2=80=99m hesitant is that, while I think it=E2=80=99s nice to= be able to have local =E2=80=98define=E2=80=99 in these contexts, I=E2=80=99m wary of = diverging from R5RS and R6RS. Since it=E2=80=99s a one-way change (we won=E2=80=99t be able to= revert it once people rely on it), I thought we=E2=80=99d rather be careful. What do people think? Andy? Thanks, Ludo=E2=80=99.