From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Maxime Devos Newsgroups: gmane.lisp.guile.devel Subject: Re: [Patch] definitions in when, unless, do as well as in cond- and case-clauses Date: Thu, 17 Jun 2021 15:54:15 +0200 Message-ID: <33ee74a331dbf6af16357c384d475f4e9d3e3913.camel@telenet.be> References: <2548315a-b028-443a-85e9-ebfd4758f701@www.fastmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-UdogAttR9GW+M8z5TYpm" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34065"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.34.2 To: Linus =?ISO-8859-1?Q?Bj=F6rnstam?= , guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Thu Jun 17 15:54:43 2021 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 1ltsTi-0008dW-WF for guile-devel@m.gmane-mx.org; Thu, 17 Jun 2021 15:54:43 +0200 Original-Received: from localhost ([::1]:47612 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ltsTh-0002xw-SA for guile-devel@m.gmane-mx.org; Thu, 17 Jun 2021 09:54:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56448) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ltsTV-0002vt-2m for guile-devel@gnu.org; Thu, 17 Jun 2021 09:54:29 -0400 Original-Received: from andre.telenet-ops.be ([2a02:1800:120:4::f00:15]:59188) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ltsTS-0004OC-Iy for guile-devel@gnu.org; Thu, 17 Jun 2021 09:54:28 -0400 Original-Received: from butterfly.local ([188.189.1.128]) by andre.telenet-ops.be with bizsmtp id JDuN2500Z2liavw01DuPp3; Thu, 17 Jun 2021 15:54:23 +0200 In-Reply-To: <2548315a-b028-443a-85e9-ebfd4758f701@www.fastmail.com> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1623938063; bh=QCc394xdk/cmCa5w2dHpbggyfUYKefbC+wV5zIyWIhw=; h=Subject:From:To:Date:In-Reply-To:References; b=rbinfnh9aVpYeo9Z6iwT4RmwKWWQkfWZ/ifsYvZCVyfSmGhF6hAjTj8IXzFlQcgFJ Eynag3huUDGt58R2cqDsdd4+CfggS0tQZIqn88VJob89MxTH03aejYR53Vw0ctEoru TPUv/ONQlLIq1vdKttREPX3IOSqlViz/e7QTyquhCzDB0Dk9gRpdbUiXn+vePgEBio m0VOPzJrzPo5eyZvglTBx7bckoi13JvOyPNSqzebEv6l1bULiBobhZ7NWeA6n7Repm Zamg55A5Y4kBJgorwXbQ1Kk8zPde91Ejk/X6hf66cLeavvWmRcXAnJ40G5KlP+z+x0 f0cJl2BEE2QYQ== Received-SPF: pass client-ip=2a02:1800:120:4::f00:15; envelope-from=maximedevos@telenet.be; helo=andre.telenet-ops.be 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.lisp.guile.devel:20784 Archived-At: --=-UdogAttR9GW+M8z5TYpm Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Linus Bj=C3=B6rnstam schreef op do 17-06-2021 om 14:57 [+0200]: > Guile already does definitions in expression context in > the bodies of lambda and let-variants. I think this is > not a big problem since any valid r6rs code is still valid guile. =E2=80=98Guile already does definitions in expression context in [...]=E2= =80=99: good point. > The discussion is in my opinion whether guile's r6rs modules should > enforce this behaviour. That might be a good thing, even though we > will provide 2 cons and case forms to do that. Pro: if your code works when using r6rs modules (in Guile), then it should work on any r6rs-conforming implementation. Con: (@ (guile) cond) !=3D (@ (rnrs base) cond), which can be surprising. Con: =E2=80=98I know this usage isn't universally portable, but I'll cross = that bridge when needed. All the Scheme I care about do have this extension. If a Scheme doesn't have this extension, I'll just patch that Scheme (free software for the win!)=E2=80=99 Greetings, Maxime. --=-UdogAttR9GW+M8z5TYpm Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYMtUCBccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7mHPAP4zmKrEo9B4UNZvF3V3Bsapvnjx 7nOTa7opsIxaaVHvwwEAie6ZNDU1uHkc5xhrWKhJxYtNbqzE7Gzc1dy3N2xU3gY= =ENu/ -----END PGP SIGNATURE----- --=-UdogAttR9GW+M8z5TYpm--