all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: Print representation of records and hash tables
Date: Thu, 14 Dec 2017 09:19:35 -0500	[thread overview]
Message-ID: <jwv374dtmwv.fsf-monnier+gmane.emacs.devel@gnu.org> (raw)
In-Reply-To: CACMkxizEJiTHB0wLx846A=hov_icPKxXgR4hBBKk=tYA5OCK_A@mail.gmail.com

> @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	other threads:[~2017-12-14 14:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-11 10:32 Print representation of records and hash tables Tianxiang Xiong
2017-12-11 21:20 ` Philipp Stephani
2017-12-12 15:21   ` Stefan Monnier
2017-12-12 17:12     ` Ted Zlatanov
2017-12-12 20:22       ` Stefan Monnier
2017-12-14  3:33         ` Tianxiang Xiong
2017-12-14 14:19           ` Stefan Monnier [this message]
2017-12-14  5:22         ` Ted Zlatanov

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=jwv374dtmwv.fsf-monnier+gmane.emacs.devel@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@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.