From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Whitton Newsgroups: gmane.emacs.devel Subject: Re: Elisp threading macros Date: Thu, 29 Aug 2024 22:19:45 +0100 Message-ID: <87le0f3u32.fsf@melete.silentflame.com> References: <87v7zksety.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11257"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: Philip Kaludercic , Garklein , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 29 23:20:56 2024 Return-path: Envelope-to: ged-emacs-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 1sjmZb-0002jV-Tj for ged-emacs-devel@m.gmane-mx.org; Thu, 29 Aug 2024 23:20:56 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sjmYk-0002pT-9A; Thu, 29 Aug 2024 17:20:02 -0400 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 1sjmYg-0002pC-Us for emacs-devel@gnu.org; Thu, 29 Aug 2024 17:19:59 -0400 Original-Received: from sendmail.purelymail.com ([34.202.193.197]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sjmYe-0004RQ-RA for emacs-devel@gnu.org; Thu, 29 Aug 2024 17:19:58 -0400 DKIM-Signature: a=rsa-sha256; b=Rqm1tsdPNKxbxdqOrWgOgF0Vd7CARCkhE15gN8ED1fyhj+TLw6Mfxn/wwmWJlmiUmjTXi2Qbh2IZtmdqtNMs1Mqu5Iysa+pHYuscXZMiUaykwsB95LtMLDuPtMNlGeL36evj/pi0tioqgmY+A8jMprDNuMRVbxtGqI7m39UEikcq7uOlowdlgwfyXZ70fPtOhUh2uqijlFHE/jyd1KMUhe326dpKx9UZH+/3Dqohkml0M7pBQ28uAxwc9jH1MBTpiWD0SUvSTR5BFFxQTprqT2QGsB9dVW2/1IKUxeS9s67BG3Uz4WYjvMAcbw64VTU/FZqwvFjBxxr4R6t5DvQJhw==; s=purelymail3; d=spwhitton.name; v=1; bh=wTyIG1l67jLaLsmG2n8ZQsrl/asVBJjeUPHrgW2QJM4=; h=Received:Received:From:To:Subject:Date; DKIM-Signature: a=rsa-sha256; b=HBk9JKfwK2nSrNtsOp1pAOUFRbtjYhDZNemH4b0dQXS9D6LudOjWqdLKsUVtpjhhY14ewaa02EPU4+j04DmyiSjYtVbdGZeEg+ZfO1g+IgoMaPJ4ZkWPFLylM8fNnoxqXdiKCpM83RBKRCX0dHLpZs7taFr/DY71oFNJXEMK3mi7JjFtwyQBR8YmMfuSdEJmY7UFzkc6NTkLMlypgRyJQ8Rf5qB4GMmR9c+joh7MVWyFVwYP1ChzRB+sRghNjgtFLiEiHSVt7t98kOvvNmWrJOBGkPd1371D7W7F3POSjABhwUDMLjaNTKxXUTh7dHt90hlas+a3YcdSiNzZBajhzQ==; s=purelymail3; d=purelymail.com; v=1; bh=wTyIG1l67jLaLsmG2n8ZQsrl/asVBJjeUPHrgW2QJM4=; h=Feedback-ID:Received:Received:From:To:Subject:Date; Feedback-ID: 20115:3760:null:purelymail X-Pm-Original-To: emacs-devel@gnu.org Original-Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -714763631; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Thu, 29 Aug 2024 21:19:47 +0000 (UTC) Original-Received: by melete.silentflame.com (Postfix, from userid 1000) id ECDCC7E7A4E; Fri, 30 Aug 2024 05:19:45 +0800 (CST) In-Reply-To: <87v7zksety.fsf@posteo.net> (Philip Kaludercic's message of "Wed, 28 Aug 2024 18:05:29 +0000") Received-SPF: pass client-ip=34.202.193.197; envelope-from=spwhitton@spwhitton.name; helo=sendmail.purelymail.com 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, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, 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: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:323187 Archived-At: Hello, On Wed 28 Aug 2024 at 06:05pm GMT, Philip Kaludercic wrote: > Garklein writes: > >> Hello, >> >> Would it be possible to have the dash.el macros `->', `->>', `-->', >> and `-some->' in subr-x.el? I find them to be really useful, and would >> love to see them in the base language. >> >> I know that `thread-first' and `thread-last' exist, but I find that my >> eyes can recognize `->' and `->>' much easier. `-->' is really nice >> for more complex threading. > > This sounds more like a matter of habit. FWIW I find a symbol like ->> > or --> very unusual for Elisp. All in all, there are not that many if I > run this snippet Right, it's not Elisp/MacLisp/Common Lisp style to use names like that. Similar to how we use '-q' for predicates, and not '?', like Scheme does. Elisp is a classic Lisp, which gives it a coherent aesthetic, which helps with readability, I think. -- Sean Whitton