emacs-devel
[Top][All Lists]
Advanced

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

Re: Print representation of records and hash tables


From: Stefan Monnier
Subject: Re: Print representation of records and hash tables
Date: Thu, 14 Dec 2017 09:19:35 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> @Stefan, perhaps it'd be helpful to explain *why* `#s` was chosen.

Why not?

It makes no sense to have a record type `hash-table` because that type
is already used for something else, so there's no ambiguity for
`#s(hash-table`

Basically, the general syntax is `#s(<type> <foo>)` where <foo> is
interpreted depending on <type>.

> I'd guess it's to fit with the `#s` read macro for structures
> <https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node191.html> in CL?

I don't think it attempts to really be compatible with this, but yes,
it was inspired by it.


        Stefan




reply via email to

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