help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Adding Lists/Sequences


From: David Kastrup
Subject: Re: Adding Lists/Sequences
Date: Thu, 25 Sep 2008 22:34:34 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Tim X <timx@nospam.dev.null> writes:

> 1. Modifying 'literal' lists is usually risky. Weird things can happen
> because on some levels, you are modifying what is best considered a
> constant.

That's all very vague and fuzzy, but there are no vague or fuzzy
semantics involved.

> This is the difference between '(1 2 3) and (list 1 2 3).

The difference is that the first form is turned into a list by the Lisp
reader, each time it is passed through the reader (in most cases, once).
In interactive use, it is perfectly equivalent to the second form.  When
put into function definitions or bound to anything, it isn't.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


reply via email to

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