[Top][All Lists]

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

Re: Better way to require with shorthands/renamed symbols

From: João Távora
Subject: Re: Better way to require with shorthands/renamed symbols
Date: Mon, 27 Sep 2021 14:09:39 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Dmitry Gutov <dgutov@yandex.ru> writes:

> On 27.09.2021 15:24, João Távora wrote:
>> One should understand (or perhaps, as a programmer, one _must_
>> understand) that the Shorthands feature works at the Lisp reader level.
>> It's tricky to think about the execution of that manifestation of
>> the
>> 'require' special and what it does at the Shorthands level.  You're
>> probably thinking of putting it on the top of your file, which is the
>> most common case, but far from the only use.  What if it happens at
>> non-top level, in an IF form?  What if it happen sat top level but in
>> the middle of the file?  It would amount to setting variables that
>> influence the reader during the read process.
> I think the key part is for this info to reside somewhere near the top
> of the file (if not in the require form, then above it, maybe).

OK.  I agree that that is much better from a usability point of view.
And the key part of my position is that currently, we shouldn't try to
make it a part of Lisp code.  Maybe we can somehoe have file-local
variables in other points of the file?

Would that suffice for you and Stefan now?


reply via email to

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