[Top][All Lists]

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

Re: hash-table-{to, from}-alist

From: Stefan Monnier
Subject: Re: hash-table-{to, from}-alist
Date: Fri, 21 Nov 2008 22:18:41 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

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 #<hash-table ...> where "..."
would contain the props and then the key/value pairs.  I.e. an extension
of the current (un`read'able syntax).


reply via email to

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