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

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

Re: reading a variable from the user


From: Eric Abrahamsen
Subject: Re: reading a variable from the user
Date: Thu, 11 Oct 2012 14:50:19 +0800
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux)

On Thu, Oct 11 2012, PJ Weisberg wrote:

> On Wednesday, October 10, 2012, Eric Abrahamsen <
> address@hidden> wrote:
>> The difference, as far as I know, is that in the first method you
> can
>> have multiple values per list (so something like (william "William"
>> "White" "address@hidden")), whereas the dotted cons cell notation
> (the
>> second one) only allows two atoms.
>
> FYI, '(william "William" "White" "address@hidden") is exactly the same
> as '(william . ("William" "White" "address@hidden"))
>
> For that matter it's the same as '(william . ("William" . ("White" .
> ("address@hidden" . nil)))).  A list is just a chain of cons cells.

Ugh, of course! If I'd thought about it for two more seconds that would
have been obvious -- that's the whole building block of lists! I wonder
if there's much practical difference between alists made of lists vs
those made of cons cells...

-- 
GNU Emacs 24.2.50.1 (i686-pc-linux-gnu, GTK+ Version 3.4.4)
 of 2012-10-10 on pellet




reply via email to

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