unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kai Grossjohann <kai@emptydomain.de>
Subject: Re: How to populate a property list?
Date: Sun, 31 Oct 2004 15:39:01 +0100	[thread overview]
Message-ID: <86r7nfkl4q.fsf@ketchup.de.uu.net> (raw)
In-Reply-To: L8adnZ06xpVLmh3cRVn-qA@speakeasy.net

Hattuari <susudata@setidava.kushan.aa> writes:

> I don't believe hash tables are the correct data structure for my
> problem.

What's wrong about hash tables?  Hash tables map keys to values, order
of keys is not significant and keys are unique.  Those are the
properties you were asking for, I think.

I'd use alists, though.  Even though the uniqueness of the values is
not guaranteed, alists are used very often in Emacs lisp and thus any
reader will instantly see what you are getting at.  When people see a
plist instead, they will think:  Why did the author avoid alists?
When people see a hash table, they will think:  This must be getting
big.

Kai

  reply	other threads:[~2004-10-31 14:39 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-26 10:09 How to populate a property list? Hattuari
2004-10-26 12:28 ` Thien-Thi Nguyen
2004-10-27 20:38   ` Hattuari
2004-10-31 14:39     ` Kai Grossjohann [this message]
2004-10-26 15:24 ` Kevin Rodgers
2004-10-30 12:05   ` Hattuari
2004-10-30 17:12     ` Thien-Thi Nguyen
2004-10-30 17:54       ` Hattuari
2004-10-30 20:17         ` Thien-Thi Nguyen
2004-10-31  8:32           ` Hattuari
2004-10-31  8:57             ` Thien-Thi Nguyen
2004-10-31 15:23             ` Hattuari
2004-11-01 16:44         ` Kevin Rodgers
2004-10-31 14:36 ` Kai Grossjohann

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=86r7nfkl4q.fsf@ketchup.de.uu.net \
    --to=kai@emptydomain.de \
    /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).