From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.lisp.guile.user Subject: Re: unusual let binding (of lp) - in function element->xml from sxml simple Date: Sun, 4 Feb 2024 07:30:20 +0100 Message-ID: References: <87zfwhrzcq.fsf@softland> <87ttmpry5k.fsf@softland> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Pf/pJWFMCGufla3s" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25370"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sun Feb 04 07:30:57 2024 Return-path: Envelope-to: guile-user@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 1rWW1o-0006Qp-0r for guile-user@m.gmane-mx.org; Sun, 04 Feb 2024 07:30:56 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rWW1M-0003Ip-BY; Sun, 04 Feb 2024 01:30:28 -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 1rWW1J-0003IN-WD for guile-user@gnu.org; Sun, 04 Feb 2024 01:30:26 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rWW1I-0008MA-9r for guile-user@gnu.org; Sun, 04 Feb 2024 01:30:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=iqLbmF54B1VyaBJKTBFOrj1p9aTjou9Fb9+bh7TG2Zs=; b=vS1TiNX5GMmdACNpw2stX/b/Zk vU50gzKofZ6pRFUOmc3mnJWFvdjn2Tcgo120l67b1OtlmF0ENzdjQKRAnf7wpHeKZB2CGoe/hkmDF HVL9PPXFIGY4K2EQ7l3ueQQlyzt9WA128nYtDf82Q9iCyfUGJD/3omHVcHPu/i82zattcprSJizIO nzpekqbi3oLTqp4jd+JZWBkgmd2MjABaFGmx51ElsyqxICWQAzEKffMjvJhXlHSqufHQ8VXzJOvoV dOTOHo/RdGg41jIGqZVzoEuB2Qbhh3+xHvVgNQO75zv+1WZZ+zdTFXUn3Z3b+XljSMC3LqVWvHiaf zY/Zp/rA==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1rWW1E-0001no-3m for guile-user@gnu.org; Sun, 04 Feb 2024 07:30:20 +0100 Content-Disposition: inline In-Reply-To: <87ttmpry5k.fsf@softland> Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=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-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:19434 Archived-At: --Pf/pJWFMCGufla3s Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Feb 03, 2024 at 10:16:55PM +0000, Andreas Reuleaux wrote: >=20 >=20 > "Thompson, David" writes: >=20 >=20 > > This is a form of 'let' known as "named let". In the code you > > reference, the variable 'lp' is a procedure, short for "loop", and the > > let bindings give initial values for the loop. Calling 'lp' will bring > > control back to the beginning of the 'let' with the bindings rebound > > to new values. It's a convenient shorthand for simple loops. > > > > See https://www.gnu.org/software/guile/manual/html_node/while-do.html#i= ndex-let-1 > > for more info. > > > > Hope this helps, > > > > - Dave >=20 >=20 > OK, thanks a lot ... and yes: this does help indeed, I always think of it as letrec's little sister :-) Cheers --=20 t --Pf/pJWFMCGufla3s Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCZb8u9AAKCRAFyCz1etHa RskRAJ0QUE2dPVi+Yb5ZpIl1LeSfJaQ8SACfZZBRv5zS6oagvtmWt0PbDdqoG50= =3+5C -----END PGP SIGNATURE----- --Pf/pJWFMCGufla3s--