[Top][All Lists]

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

design ponderings: plist to alist

From: Thien-Thi Nguyen
Subject: design ponderings: plist to alist
Date: Wed, 16 Apr 2014 07:48:34 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

This fragment (from gnugo.el):

Attachment: bink86Jn8w6h3.bin
Description: application/emacs-lisp

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: pgpKmrJrQrsn6.pgp
Description: PGP signature

reply via email to

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