[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?
João
- Re: Shorthands have landed on master, (continued)
- Re: Shorthands have landed on master, Philip Kaludercic, 2021/09/27
- Re: Shorthands have landed on master, João Távora, 2021/09/27
- Re: Shorthands have landed on master, Philip Kaludercic, 2021/09/28
- Re: Shorthands have landed on master, João Távora, 2021/09/28
- Re: Shorthands have landed on master, Eli Zaretskii, 2021/09/28
- Re: Shorthands have landed on master, João Távora, 2021/09/28
- Re: Shorthands have landed on master, Philip Kaludercic, 2021/09/28
- Re: Shorthands have landed on master (Was: Better way to require with shorthands/renamed symbols), Richard Stallman, 2021/09/28
Re: Better way to require with shorthands/renamed symbols, João Távora, 2021/09/27
- Re: Better way to require with shorthands/renamed symbols, Dmitry Gutov, 2021/09/27
- Re: Better way to require with shorthands/renamed symbols,
João Távora <=
- Re: Better way to require with shorthands/renamed symbols, Stefan Kangas, 2021/09/27
- Re: Better way to require with shorthands/renamed symbols, João Távora, 2021/09/27
- Re: Better way to require with shorthands/renamed symbols, Stefan Kangas, 2021/09/27
- Re: Better way to require with shorthands/renamed symbols, João Távora, 2021/09/27
- Re: Better way to require with shorthands/renamed symbols, T.V Raman, 2021/09/27
- Re: Better way to require with shorthands/renamed symbols, Richard Stallman, 2021/09/30
Re: Better way to require with shorthands/renamed symbols, Ihor Radchenko, 2021/09/28