emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why have a #if .... #else .... #endif construct in Emacs Lisp, when


From: Emanuel Berg
Subject: Re: Why have a #if .... #else .... #endif construct in Emacs Lisp, when we could make the existing code DTRT unchanged?
Date: Tue, 05 Sep 2023 02:41:52 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Richard Stallman wrote:

>> 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?

Will it drop byte-compiler warnings as well from the part that
is dropped?

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]