emacs-devel
[Top][All Lists]
Advanced

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

Re: Do shorthands break basic tooling (tags, grep, etc)? (was Re: Shorth


From: João Távora
Subject: Re: Do shorthands break basic tooling (tags, grep, etc)? (was Re: Shorthands have landed on master)
Date: Thu, 30 Sep 2021 17:02:12 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Tomas Hlavaty <tom@logand.com> writes:

> On Thu 30 Sep 2021 at 15:57, João Távora <joaotavora@gmail.com> wrote:
>> On Thu, Sep 30, 2021 at 3:27 PM Tomas Hlavaty <tom@logand.com> wrote:
>>
>>> That does not work.  Common Lisp reader is programable.  If you do not
>>> compile and load everything needed sucessfully, the reader will fail for
>>> anything non-trivial.
>>
>> Those non-trivial things are quite rare,
>
> Not really.
>
>> and good reader etiquette makes the code that is CL:READ with a
>> non-full reader at least make a good deal of sense.
>
> What is "good reader etiquette"?

See this section of CLTL2

  https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node191.html

See how some combinations are explicitly reserved for the user.  Stick
to those.

> What if some library does not have "good reader etiquette"?
> Do you give up search because of that?

No, but it's like libraries using

   (intern (format nil "~a~a" "foo" "bar"))

They're not making life easier for their users in that respect.

> It is not a choice between one or the other.  I need both.  Please do
> not break grep and web search.

I explained how they are already "broken".  In CL (the topic of this
particular subthread), by packages and in every language that has any
type of indirection.  I'm saying they were never really "good" to begin
with, not if you want to use the full available power in those
languages.

> There are some heuristics for choosing good names.

Yes there are, and you shouldn't give them up, by any means.

João



reply via email to

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