The docstring for quote
says,
Quoting should be reserved for constants that will never be modified by side-effects, unless you like self-modifying code.
Are there cases in which it is the best choice instead?
Are there any cases in which list
should be avoided?
I've asked this question to complement When to use quote for lists? Modifying quoted lists in Elisp, which is mostly about the potential drawbacks of using quote
. What I'd like to know is not only when it is ok to use it, but if there are cases in which it is the best choice over list
or cons
.
PS This question was originally about quote
and list
, then Dan made me realize I had conflated quote
and backquote
in my mind. The functions I was actually confused about were backquote
and list
. Sorry for the confusion.