From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: help-gnu-emacs@gnu.org
Subject: Re: reading a variable from the user
Date: Thu, 11 Oct 2012 14:50:19 +0800 [thread overview]
Message-ID: <874nm133kk.fsf@ericabrahamsen.net> (raw)
In-Reply-To: CAJsNXT=JNnCkzb=H87Dz7t0DXqGMrmqgCFuT8RnEGNZru_+aXQ@mail.gmail.com
On Thu, Oct 11 2012, PJ Weisberg wrote:
> On Wednesday, October 10, 2012, Eric Abrahamsen <
> eric@ericabrahamsen.net> 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" "xx@xxxxxx.org")), whereas the dotted cons cell notation
> (the
>> second one) only allows two atoms.
>
> FYI, '(william "William" "White" "xx@xxxxxx.org") is exactly the same
> as '(william . ("William" "White" "xx@xxxxxx.org"))
>
> For that matter it's the same as '(william . ("William" . ("White" .
> ("xx@xxxxxx.org" . 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
next prev parent reply other threads:[~2012-10-11 6:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-10 7:24 reading a variable from the user drain
2012-10-10 9:08 ` Francesco Mazzoli
2012-10-10 9:16 ` Tassilo Horn
2012-10-10 9:22 ` horse_rivers
2012-10-10 13:59 ` Doug Lewan
2012-10-10 14:13 ` Drew Adams
2012-10-11 1:09 ` drain
2012-10-11 3:27 ` Eric Abrahamsen
2012-10-11 6:08 ` PJ Weisberg
2012-10-11 6:50 ` Eric Abrahamsen [this message]
2012-10-11 6:16 ` drain
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874nm133kk.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).