From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: hash-table-{to, from}-alist Date: Fri, 21 Nov 2008 22:18:41 -0500 Message-ID: References: <34f9604c-a23b-4ad9-9c84-f45884a6df23@x16g2000prn.googlegroups.com> <86od3dfd86.fsf@lifelogs.com> <868wuflxv9.fsf@lifelogs.com> <863aknitfg.fsf@lifelogs.com> <20080830051807.GB9625@tomas> <86bpwe9su5.fsf@lifelogs.com> <867i6z1jo5.fsf_-_@lifelogs.com> <86ej14vhvg.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1227323881 4251 80.91.229.12 (22 Nov 2008 03:18:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Nov 2008 03:18:01 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ted Zlatanov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 22 04:19:02 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L3j1R-0007Ke-Fx for ged-emacs-devel@m.gmane.org; Sat, 22 Nov 2008 04:19:01 +0100 Original-Received: from localhost ([127.0.0.1]:41007 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L3j0I-00076m-Do for ged-emacs-devel@m.gmane.org; Fri, 21 Nov 2008 22:17:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L3j0D-00074C-9v for emacs-devel@gnu.org; Fri, 21 Nov 2008 22:17:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L3j09-00070d-P1 for emacs-devel@gnu.org; Fri, 21 Nov 2008 22:17:43 -0500 Original-Received: from [199.232.76.173] (port=60508 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L3j09-00070U-Kf for emacs-devel@gnu.org; Fri, 21 Nov 2008 22:17:41 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:54072 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L3j09-00032B-Et for emacs-devel@gnu.org; Fri, 21 Nov 2008 22:17:41 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqEEAD8IJ0nO+KUv/2dsb2JhbACBbdIjgnyBGw X-IronPort-AV: E=Sophos;i="4.33,648,1220241600"; d="scan'208";a="30171587" Original-Received: from 206-248-165-47.dsl.teksavvy.com (HELO pastel.home) ([206.248.165.47]) by ironport2-out.teksavvy.com with ESMTP; 21 Nov 2008 22:17:40 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id C5C1980FF; Fri, 21 Nov 2008 22:18:41 -0500 (EST) In-Reply-To: <86ej14vhvg.fsf@lifelogs.com> (Ted Zlatanov's message of "Fri, 21 Nov 2008 16:22:59 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:105923 Archived-At: SM> They don't look too harmful, but I think we need more: we need to hook SM> this into prin1 and into read so it works transparently. > We can't, because we're converting to an alist and there's no way to > convert back. True serialization would require a new marker, similar to > () for lists and [] for vectors. Braces would probably work, I don't > think they are used anywhere: > { :prop1 prop-value1 :prop2 prop-value2 ... key1 val1 key2 val2 ... } > (:prop1 is :test for example) I was thinking of something more like # where "..." would contain the props and then the key/value pairs. I.e. an extension of the current (un`read'able syntax). Stefan