From: Thien-Thi Nguyen <ttn@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: design ponderings: plist to alist
Date: Wed, 16 Apr 2014 07:48:34 +0200 [thread overview]
Message-ID: <87a9bl7rkd.fsf@zigzag.favinet> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 31 bytes --]
This fragment (from gnugo.el):
[-- Attachment #1.2: Type: application/emacs-lisp, Size: 994 bytes --]
[-- Attachment #1.3: Type: text/plain, Size: 678 bytes --]
includes a function to convert plist (succinct to humans) to alist
(succinct to computers). I spent 20 minutes poking around the Emacs
source searching for something builtin, to no avail. I saw a few cases
of the opposite direction (alist to plist) and many cases where plists
are walked at time of use (e.g., the C code for text-properties), so
maybe this is a hint that plist to alist (pre-use) is a net lose. :-/
What do people think?
--
Thien-Thi Nguyen
GPG key: 4C807502
(if you're human and you know it)
read my lisp: (responsep (questions 'technical)
(not (via 'mailing-list)))
=> nil
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
next reply other threads:[~2014-04-16 5:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-16 5:48 Thien-Thi Nguyen [this message]
2014-04-16 8:16 ` design ponderings: plist to alist Thorsten Jolitz
2014-04-16 8:35 ` Thien-Thi Nguyen
2014-04-16 10:04 ` Pascal J. Bourguignon
2014-04-16 17:20 ` Stefan Monnier
2014-04-16 17:29 ` Stefan Monnier
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a9bl7rkd.fsf@zigzag.favinet \
--to=ttn@gnu.org \
--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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.