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: Why shouldn't we have a #if .... #else .... #endif construct in Emacs Lisp? Date: Wed, 30 Aug 2023 21:48:26 +0100 Message-ID: <878r9suuhx.fsf@melete.silentflame.com> References: <87zg2bosf3.fsf@dataswamp.org> <875y4y14vy.fsf@localhost> 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="3838"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Ihor Radchenko , emacs-devel To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 30 22:49:40 2023 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 1qbS8B-0000gO-Nu for ged-emacs-devel@m.gmane-mx.org; Wed, 30 Aug 2023 22:49:40 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qbS7C-0006Ju-3v; Wed, 30 Aug 2023 16:48:38 -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 1qbS79-0006JS-SM for emacs-devel@gnu.org; Wed, 30 Aug 2023 16:48:35 -0400 Original-Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qbS77-000378-7O for emacs-devel@gnu.org; Wed, 30 Aug 2023 16:48:35 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 0FA3032004AE; Wed, 30 Aug 2023 16:48:29 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 30 Aug 2023 16:48:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=cc:cc:content-transfer-encoding:content-type: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=fm3; t=1693428509; x=1693514909; bh=6EopqTBCiwa8WLCJTYR28oAjR 74WYyM5+2YD4a/GDfw=; b=XBqNjWNJfwQlfsYP1EVU/wqd6UytLryHUPmeuTete S8fh2h0TlomyQoKT0xorReZ3ykngd5Oo24Fni7kX64yGPbMhhIRzgwGa1gLBctL5 4p3mZ4GYxYsVAhYYHWfADdejImuPYNAqOkvxyVc/FkCQqVav18w8dNRh9UqcMGkE SohNiLWdxujhtdc/UPEUfahgHgC9MI6lJcnuWpWQFsSqf0FhbYRsXel8Sv8P0ev5 0cviM+pFP9vfKAHWND7KspmP7+xBoHuIhn0TqiQSB7sstPgSVf94ojNbFTXp774D k58whI9ju7hQ9jN8mqKWwZGRSzyYSpLjUlgOhMxQoRyeQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :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=fm1; t= 1693428509; x=1693514909; bh=6EopqTBCiwa8WLCJTYR28oAjR74WYyM5+2Y D4a/GDfw=; b=qtFPrT5Hie6eECksehAniVyJhNWX0LwL8PoKDgVycXAbCgPIKKw 4SM4s7FiJoIBFTB5+OEGC84eKoHrHv+h23ym0p8qgRWvdS/CWtvubPzkNHvVEPab v5DW9R/e7Al1H7nxfPr6G7GCHFyVCqw8lKyGu4Ay5b7/XSSOnPjBBtULtJUyYTpg VUcfo4Pb7FLlhp47D3yYZsnOJsfYc1bn3vfQsbfasbO8WbfTf5r5NjOf4eK/GA+2 86w9wstE4G1GpWn0WYTPnvxBFE/Setlkf/npZKNnqFd4OHbU7HYCKEva00FO0jHS 9x8aCoAbwHBdLur9C65WB2WZdJG/Y5LVo2g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudefkedgudehiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufgjfhffkfgfgggtgfesthhqtddttderjeenucfhrhhomhepufgv rghnucghhhhithhtohhnuceoshhpfihhihhtthhonhesshhpfihhihhtthhonhdrnhgrmh gvqeenucggtffrrghtthgvrhhnpefffefhjedugedutddukeejkeeuveevvdeigefhgeel teeuhfekgeekhfeljedvudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvg X-ME-Proxy: Feedback-ID: i23c04076:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 30 Aug 2023 16:48:28 -0400 (EDT) Original-Received: by melete.silentflame.com (Postfix, from userid 1000) id 37C397E9613; Wed, 30 Aug 2023 21:48:26 +0100 (BST) In-Reply-To: (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vora=22's?= message of "Tue, 29 Aug 2023 12:20:31 +0100") Received-SPF: pass client-ip=64.147.123.25; envelope-from=spwhitton@spwhitton.name; helo=wout2-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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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:309558 Archived-At: Hello, On Tue 29 Aug 2023 at 12:20pm +01, Jo=C3=A3o T=C3=A1vora wrote: > Of course it has many more even, but the problem is that such things > are hardcoded in C even if part of the implementation then jumps to Lisp. > See lread.c around line 4318 for how backquote is hardcoded. In Common > Lisp there is a programmable mechanism for adding such macros entirely > within the language. So don't be fooled, Elisp simply doesn't have that. It's a deliberate choice, right? As part of ideas about keeping elisp simpler than something like CL. --=20 Sean Whitton