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.devel Subject: Re: Why have a #if .... #else .... #endif construct in Emacs Lisp, when we could make the existing code DTRT unchanged? Date: Mon, 04 Sep 2023 20:30:25 -0400 Message-ID: References: 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="783"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: acm@muc.de, ulm@gentoo.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 05 02:30:34 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 1qdJxh-000AbQ-I1 for ged-emacs-devel@m.gmane-mx.org; Tue, 05 Sep 2023 02:30:33 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qdJxb-00035l-W0; Mon, 04 Sep 2023 20:30:28 -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 1qdJxa-00031f-Ay for emacs-devel@gnu.org; Mon, 04 Sep 2023 20:30:26 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdJxa-0002bL-1G; Mon, 04 Sep 2023 20:30:26 -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=b5kqO0JP3WbZofGwGW3mfrUlQn9boFO3eFHJcXnN0fw=; b=qPD5lDzBKonP enoS4xUG8Rh5eDQO7LJ9WjqWYf6NDry73GLR6ZqYYekR9racVNlhOsIVMwUzEyupgEF3GUGkaif7y Qe/iflDkaITunFBc1eIN97vMX1V9WNBw+OAI2sLA8vIPfSfglVwwqFDLg/i1aJ5v8rhOvldokJKO1 2zCGpcyhPZi67os+GOzOWYbNMSOHFWGAQi1+a8u+WmZNjVQwPd4Ub8MlS5rmqUalwg0/HfqQGzLIT 0gkb2QY/flQTYndNP+fK6L64bFMb+WNtCPSrFLkCGpFcjgOjwBnQ9U6LdhXVOmMnsTgV3jI+N65Fd PMfPVYEDuso7a8uZF0gEig==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1qdJxZ-0005QO-Q2; Mon, 04 Sep 2023 20:30:25 -0400 In-Reply-To: (message from Richard Stallman on Wed, 30 Aug 2023 22:07:04 -0400) 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:310104 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. ]]] > How about making the byte compiler recognize the construct > (if (< emacs-major-version NUMBER) ...) > and do this optimization on it? People seem not to have considered this seriously, but I have not seen any serious discussion of a drawback. What flaw or drawback do people see in it? It should optimize the existing the existing code with no change at all. Isn't that just perfect? -- 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)