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?Linus_Bj=C3=B6rnstam?= Newsgroups: gmane.lisp.guile.devel Subject: Re: Fwd: [Patch] definitions in when, unless, do as well as in cond- and case-clauses Date: Mon, 07 Feb 2022 06:56:37 +0100 Message-ID: <8b364eb9-ac93-4166-8564-bd4c48274af1@www.fastmail.com> References: <38a7683ab39f412cd6f5b137d2f6ebd6f5410c5e.camel@telenet.be> <8db379b94c9d724c833478db7e6e8a6a4f379f69.camel@telenet.be> 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="32486"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.5.0-alpha0-4586-g104bd556f9-fm-20220203.002-g104bd556 Cc: guile-devel To: "Stefan Israelsson Tampe" Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Mon Feb 07 06:57:38 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 1nGx1r-0008CB-1n for guile-devel@m.gmane-mx.org; Mon, 07 Feb 2022 06:57:37 +0100 Original-Received: from localhost ([::1]:35110 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nGx1p-0000Eh-DS for guile-devel@m.gmane-mx.org; Mon, 07 Feb 2022 00:57:33 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33076) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGx1N-0000ET-T2 for guile-devel@gnu.org; Mon, 07 Feb 2022 00:57:06 -0500 Original-Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:56141) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGx1K-0003PH-3h for guile-devel@gnu.org; Mon, 07 Feb 2022 00:57:05 -0500 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 102AA3200BF9; Mon, 7 Feb 2022 00:56:59 -0500 (EST) Original-Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Mon, 07 Feb 2022 00:57:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=veryfast.biz; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; bh=2cLq4mIJ9dpMMV B/m75vYAu1yc1gbBCcUiG1mwrj9gU=; b=hDwbJsYknCYEBXlHbEFi1XnJXOrMlx ugdquVig9mqyRw61JPPs5woONH3FduwZUUWuGQwAYP9CIeapLLk5nC1NZbx2oDRw l4ibHKq0+fFoP3GF6F6U45nRoVSr7Mt2IrF7FYDdAgX8EyLVd2WFxVvG5iGFRPqv Rb8b323m1gZy7NkYyOg9nVMBuSXgyMF6EYOxCjAF1x0VDEczsdR5mzAhYnFDo/tK tlcu/RmyzNRx5tmY/wKWpQiXEkhhf6TvfizrRxaTng/uv+w+uxn2buxU019BjUId mkpGKSaVy/9PimMwsSSz/QEaa/Gc9N8zjDAcMvBS4c1GwrKQY6BUfK3g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=2cLq4mIJ9dpMMVB/m75vYAu1yc1gbBCcUiG1mwrj9 gU=; b=MBBzzwNnclxejUuecA8n54dFX4GJzJdOFhJI7ZvRM7EJ83f/lkAR3SwRp 54gfRn32Ta5p/zcKgNAr8xWpvgyP7G+MQsR1JxwxEIhXjQ+IALKOKiy0kLALWziC xA+L7UnHVNLnkiMPzdw/zB4j+5GecjtnpebSW3+m6t+mNN8gCY4uYB6NTPi9sLRE 3BkiRZlnR+10XWXcoz1yK1Twa0VwR98FYR7Lll+vTe5wvaOV4iEjBiJexyDTUk87 gOq4zTswzLVX84k5nFRzM1bwlSwZ7TsVZWUTeV/AnNqixQhcsXk0azVOjhDNb9r0 nw29aIH1GMnmWIBjT1LCEJMywn73g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrheeggdekiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtgfesthhqredtreerjeenucfhrhhomhepnfhinhhu shgpuehjnphrnhhsthgrmhcuoehlihhnuhhsrdgsjhhorhhnshhtrghmsehvvghrhihfrg hsthdrsghiiieqnecuggftrfgrthhtvghrnheptedvueetheeukeethfduvdejleetffeu vddvueduieeuvdettdeuheehvdejieffnecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomheplhhinhhushdrsghjohhrnhhsthgrmhesvhgvrhihfhgr shhtrdgsihii X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 535A31BC0072; Mon, 7 Feb 2022 00:56:59 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: Received-SPF: pass client-ip=64.147.123.21; envelope-from=linus.bjornstam@veryfast.biz; helo=wout5-smtp.messagingengine.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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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:21086 Archived-At: Historical garage maybe. I just remember some old bug in WebKit where le= t was a lot slower than var because it created what was called lexical c= ontext which affected interpreter speed because of some kind of linear t= ime variable lookup. Anyway, that stuff doesn't apply to guile versions after 2. Especially s= ince a (let () body ...) where the body contains no (define ...) gets co= nverted to a (begin body ...) by the optimizer.=20 The behaviour of begin Vs let is well specified and any begin outside of= a body context is just chain of expressions. It just lacks internal def= initions.=20 --=20 Linus Bj=C3=B6rnstam On Sun, 6 Feb 2022, at 21:13, Stefan Israelsson Tampe wrote: > Hmm just why conditionals use begin and not let, > > On Sun, Feb 6, 2022 at 11:49 AM wrote: >> On Sun, Feb 06, 2022 at 10:45:54AM +0100, Linus Bj=C3=B6rnstam wrote: >> > You need to use ,optimize.=20 >>=20 >> Thanks you both, Maxime and Linus, for giving me a new lantern :) >>=20 >> Cheers >> --=20 >> t