all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tianxiang Xiong <tianxiang.xiong@gmail.com>
To: Emacs developers <emacs-devel@gnu.org>
Subject: Print representation of records and hash tables
Date: Mon, 11 Dec 2017 02:32:13 -0800	[thread overview]
Message-ID: <CACMkxizkzFEJXdyt2iHuL5A=xH4bc1zoawtxfTLNB6xrM-u9Sg@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 524 bytes --]

Emacs 26 introduces records, which have a print representation
<http://git.savannah.gnu.org/cgit/emacs.git/tree/doc/lispref/records.texi#n27>
starting with `#s`, followed by a list of contents.

This seems similar to the print representation of hash tables:

(make-hash-table)
;; => #s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8
data ( ...))

Is this merely "coincidence", or is there some deeper meaning? If not,
isn't it confusing to have two different objects w/ such similar print
representations?

[-- Attachment #2: Type: text/html, Size: 659 bytes --]

             reply	other threads:[~2017-12-11 10:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-11 10:32 Tianxiang Xiong [this message]
2017-12-11 21:20 ` Print representation of records and hash tables 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
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='CACMkxizkzFEJXdyt2iHuL5A=xH4bc1zoawtxfTLNB6xrM-u9Sg@mail.gmail.com' \
    --to=tianxiang.xiong@gmail.com \
    --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.