[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Elisp - quoting or not?
From: |
Pankaj Jangid |
Subject: |
Re: Elisp - quoting or not? |
Date: |
Sat, 05 Dec 2020 18:01:43 +0530 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) |
<tomas@tuxteam.de> writes:
> On Sat, Dec 05, 2020 at 07:12:59AM +0100, An Liu wrote:
>> sorry, typo
>>
>> abcd `(ab cd) should be
>>
>> abcd `(,ab ,cd)
>
> Or just
>
> abcd (list ab cd)
>
> (I'd slightly prefer this one, since your -- totally correct --
> `(,ab ,cd) variant suggests that there's some quoting going on,
> which could be a bit misleading. But that's just a matter of
> taste).
I too prefer the (list ab cd) approach. backquote and comma means there
is quoting but with exceptions. In this case first two are cons cells
and last one is a list. But true, it /is/ a matter of taste.