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: Sun, 06 Feb 2022 07:44:31 +0100 Message-ID: References: <7f58438c-f2fb-49b6-b7b0-22054fde6277@www.fastmail.com> <38a7683ab39f412cd6f5b137d2f6ebd6f5410c5e.camel@telenet.be> <8db379b94c9d724c833478db7e6e8a6a4f379f69.camel@telenet.be> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39208"; 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" , "Maxime Devos" Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Sun Feb 06 07:53:36 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 1nGbQU-000A0E-5K for guile-devel@m.gmane-mx.org; Sun, 06 Feb 2022 07:53:36 +0100 Original-Received: from localhost ([::1]:48368 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nGbQQ-0001lq-V5 for guile-devel@m.gmane-mx.org; Sun, 06 Feb 2022 01:53:32 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGbJP-0001lZ-1u for guile-devel@gnu.org; Sun, 06 Feb 2022 01:46:15 -0500 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:50763) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGbJF-0006k4-6u for guile-devel@gnu.org; Sun, 06 Feb 2022 01:46:09 -0500 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 9F5015C00B0; Sun, 6 Feb 2022 01:44:52 -0500 (EST) Original-Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Sun, 06 Feb 2022 01:44:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=veryfast.biz; h= cc:cc: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=yJOt35+kQKuXZLzMjV6G4Tq9hXqiZa1utyN8cO XlVmg=; b=jwFu+D3Wl/a5j+sjckzwi4bsiQVuzEpKjlIshlUNWi3lmJahH/DdNp vK5KS7BnGGQm2hGxYpUlZjkyKWR82svWone2cfDaZskpmie+coNDLi2qP3BepJzm hr71Tkhl8eUQmWaiVgngT4MFR2N4z8liqyjV90wAIPYmzzQRHUhzXa4iLj5rRMb3 l06JEZUHhkO+igeBkow+kMc/ZWZOC0ehJkbuBawCYz7c+CipbKL/hQYFZL4qJ7Ku NEpxaZHpSnbN//YUiX7kDek9a/pMsIPgxKKxtQVV9GdhRb8fokkEy0da/9hbNVag PP/a4K17Iks06Vof65nTtnnQFvtnNluA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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=yJOt35+kQKuXZLzMj V6G4Tq9hXqiZa1utyN8cOXlVmg=; b=O3MSQOg4J5/qTnEZhPqbm/iQPkeCaQwpp CIW6hj4VPLpZG0wsBPcdnfQhR/KJNwWoImAknNlUTouWap1cnUAOZx8VrQTZ74B/ HhfIXxway/P7lPfMreC2/j7cviuWKyj9Rd8KQ0pWUclJ/Byyd6oF5QYoQwcC8/3M bR3AI44rBC/f+5d/hDtmgJFCmjVi91h5DRhF8ieMT1ibgaHqCSe4nIakPA6FUIeJ wiWZ8iPg3y0XtYxfHu8TUFW13gI6JGrRe01wH/5pD9NWzgeCdm/bhFXmV22pOuWv 4DIGP147ceIQviXGimepCSSPa7Y7bWFgg23u/2om2f91rJuccYRdg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrhedvgdelkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsehttdertderreejnecuhfhrohhmpefnihhnuhhs pgeujhpnrhhnshhtrghmuceolhhinhhushdrsghjohhrnhhsthgrmhesvhgvrhihfhgrsh htrdgsihiiqeenucggtffrrghtthgvrhhnpeeugfdtffffvdffjeehheefhefgfeeihedt hffgjeehueetfeetgeekhfegtddtveenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpehlihhnuhhsrdgsjhhorhhnshhtrghmsehvvghrhihfrghs thdrsghiii X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 4F06A1BC0072; Sun, 6 Feb 2022 01:44:52 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: Received-SPF: pass client-ip=66.111.4.27; envelope-from=linus.bjornstam@veryfast.biz; helo=out3-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:21075 Archived-At: On Sat, 5 Feb 2022, at 18:31, Stefan Israelsson Tampe wrote: > Hmm this was wrong, I mean > > For conditional variables we have a default begin. So then why on earth > do you not have an implicit let?, Just laziness? > There should be a good reason or? this is a pretty fundamental change > that I support but then we should not be lazy not trying to understand > the design choices of the old beards. In other languages let starts a new lexical context which can be expensive. I don't know guile internals but a let without any defines is trivially converted to a begin by the optimizer.