[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why shouldn't we have a #if .... #else .... #endif construct in Emac
From: |
Stefan Kangas |
Subject: |
Re: Why shouldn't we have a #if .... #else .... #endif construct in Emacs Lisp? |
Date: |
Sat, 2 Sep 2023 12:37:14 -0700 |
Philip Kaludercic <philipk@posteo.net> writes:
> Alan Mackenzie <acm@muc.de> writes:
>
>> +;; Note: `static-if' handles the version of `eval' without the &optional
>> +;; parameter LEXICAL so that it can be copied unchanged for use in older
>> +;; Emacsen.
>
> Is this really a concern for the version that would be added to Emacs itself?
I think we can have our cake and eat it by adding the non-nil LEXICAL
parameter and changing the comment to:
;; Remove the &optional parameter LEXICAL for `eval' if this needs
;; to work in Emacs version 24.3 or older.
That way, there can be no absolutely confusion about when it would need
to be removed, and packages that don't need to will use lexical-binding.
Re: Why shouldn't we have a #if .... #else .... #endif construct in Emacs Lisp?, Philip Kaludercic, 2023/09/02