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: Fwd: [Patch] definitions in when, unless, do as well as in cond- and case-clauses Date: Fri, 04 Feb 2022 20:58:00 +0000 Message-ID: <38a7683ab39f412cd6f5b137d2f6ebd6f5410c5e.camel@telenet.be> References: <7f58438c-f2fb-49b6-b7b0-22054fde6277@www.fastmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-BW4tMxUpzfxFwEONdww9" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21460"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.38.3-1 To: Stefan Israelsson Tampe , guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Fri Feb 04 22:22:20 2022 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 1nG626-0005FV-Hf for guile-devel@m.gmane-mx.org; Fri, 04 Feb 2022 22:22:18 +0100 Original-Received: from localhost ([::1]:37996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nG624-0007BP-PT for guile-devel@m.gmane-mx.org; Fri, 04 Feb 2022 16:22:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54268) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nG5eo-0007hr-Pz for guile-devel@gnu.org; Fri, 04 Feb 2022 15:58:15 -0500 Original-Received: from [2a02:1800:110:4::f00:1a] (port=33334 helo=albert.telenet-ops.be) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nG5em-00016J-3Q for guile-devel@gnu.org; Fri, 04 Feb 2022 15:58:14 -0500 Original-Received: from [192.168.43.254] ([5.23.235.206]) by albert.telenet-ops.be with bizsmtp id r8y42600c4TrpFp068y5N9; Fri, 04 Feb 2022 21:58:05 +0100 In-Reply-To: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1644008285; bh=OcTwhHqdmFIe//KlQH5xCndGV/hyYeI2gpZtcKFGQRU=; h=Subject:From:To:Date:In-Reply-To:References; b=TX04FF9SpAUR2lOcaESYj4zcFRFl5+LY7m/wbPy8oS5CDIcXAGbmLrnlO00SWjrsc IKduDNNwNg0J1PFUrK/ROXdvhBnsaZ3gEEfhWA8do4dR5PSsDRl5XcLGYfDd9LDPlA c6f7TCWNzx6q5mCi2KQlxy2XgbhUANpi4as/yf8/f2sOw+x8Fjg9TezgdMXuSNnTLn G4BJW2VMFbIbmn781Iv/SKMTUVjEvVo7nhKZbFSM5aUbbx31dBK9TasbS4/9zCVQff 7894evyFeaKA5S+NPzyXEbThn8GPOUk22a/mwlUTcBQSi9wqID3e2+TUkPxk734ykm lVwkYE7s9HY0A== X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a02:1800:110:4::f00:1a (failed) Received-SPF: pass client-ip=2a02:1800:110:4::f00:1a; envelope-from=maximedevos@telenet.be; helo=albert.telenet-ops.be X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 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, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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" Xref: news.gmane.io gmane.lisp.guile.devel:21067 Archived-At: --=-BW4tMxUpzfxFwEONdww9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Stefan Israelsson Tampe schreef op vr 04-02-2022 om 21:11 [+0100]: > using an implicit let in conditionals=C2=A0are bad in that you cannot > escape=C2=A0from the let form which means that you loos > conditional=C2=A0defines for example in the toplevel. e.g. [...] While old versions of Guile (Guile 1.8?) did support conditional defines on the top-level, new versions of Guile (Guile 2.0 and later) don't: (if #true (define x 'foo) (define x 'bar)) While compiling expression: Syntax error: unknown file:2:4: definition in expression context, where definitions are not allowed, in form (define x (quote foo)) The following still works though of course: (define x (if #true 'foo 'bar)) So for the current version of Guile (3.0.X), there don't appear to be backwards-compatibility problems in this area. Greetings, Maxime. --=-BW4tMxUpzfxFwEONdww9 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+4iGRcl7gUCYf2TWBccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7qAHAP94jXyO+LFRSz1sn7EUvNOrbhQ4 DIBr/yhfJR4smsWqmQD+JurEIcoNF8JtBAoAnTcppzDGPOt1VW96MrCCNGcNLQo= =81yp -----END PGP SIGNATURE----- --=-BW4tMxUpzfxFwEONdww9--