From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: bug#56875: 29.0.50; [PATCH] Add thread-as macro Date: Tue, 02 Aug 2022 23:47:08 -0400 Message-ID: References: <87h72vq4eq.fsf@gmail.com> <877d3r0x22.fsf@gnus.org> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19103"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56875@debbugs.gnu.org, eliz@gnu.org, arstoffel@gmail.com To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 03 05:48:15 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1oJ5Ml-0004mz-Mu for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Aug 2022 05:48:15 +0200 Original-Received: from localhost ([::1]:44514 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJ5Mk-0003kF-Ld for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Aug 2022 23:48:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57220) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJ5MY-0003k7-Te for bug-gnu-emacs@gnu.org; Tue, 02 Aug 2022 23:48:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55975) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJ5MY-00017d-IM for bug-gnu-emacs@gnu.org; Tue, 02 Aug 2022 23:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJ5MY-0006Ie-ED for bug-gnu-emacs@gnu.org; Tue, 02 Aug 2022 23:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Aug 2022 03:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56875 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch moreinfo Original-Received: via spool by 56875-submit@debbugs.gnu.org id=B56875.165949843824058 (code B ref 56875); Wed, 03 Aug 2022 03:48:02 +0000 Original-Received: (at 56875) by debbugs.gnu.org; 3 Aug 2022 03:47:18 +0000 Original-Received: from localhost ([127.0.0.1]:45724 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJ5Lq-0006Fy-98 for submit@debbugs.gnu.org; Tue, 02 Aug 2022 23:47:18 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJ5Lo-0006Fh-0O for 56875@debbugs.gnu.org; Tue, 02 Aug 2022 23:47:16 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34726) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJ5Li-00010S-N6; Tue, 02 Aug 2022 23:47:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=oguIJyXOPEBy5hwAUUhgGq58f2GiBRVoO+bjxZRLXD0=; b=hQANrLk8yVSe V4rOi0VFBK+7bV2dYQg7u7Yx+j/F0b2nAFleQ0PXZ27AVai27D7gndyrnU2mmImnwyZyXVbYRHaxx x+3lfVU9/YCdDeIbOQfL3ytwoDFpAK+gaUaUpoQAAkUns1mQ+sQ4fhFcBox5Hco2kh4uzPEr0qJcf RQooSFJ62W5S0vBeeijsjnSOiow9UPcbvFgz41luTHftLMPeNaoVBHpEyKZaLEn/kAbRUIUdF6BT/ 9WJGq1dKTFCJUumUh3WnZXnFCN5Vzp94UcgmSPK7ZrHp6wgagqNwiwminPB+Uq3e6hBHB4DBhKpaB +Ms/lsrpOG3o1WDMfrnlVA==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1oJ5Lg-0005fq-Sm; Tue, 02 Aug 2022 23:47:08 -0400 In-Reply-To: <877d3r0x22.fsf@gnus.org> (message from Lars Ingebrigtsen on Tue, 02 Aug 2022 12:17:09 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:238611 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > + (thread-as x > + 4 > + (- 10 x) > + (/ x 2)) I propose a different syntax which is more Lispy than thread-as, and more self-evident: (let-successive ((x 4 (- 10 x))) (/ x 2)) A Lisper can guess what it means, without having read a description. It lends itself to a generalization where there is more than one bound variable, each of which can have several values: (let-successive ((x 4 (- 10 x)) (y 6 (- 12 y))) (* x y)) => 36 The values after the first can refer to all of the variables, since all of them are already bound (to the previous values) at that point. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)