unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Print representation of records and hash tables
@ 2017-12-11 10:32 Tianxiang Xiong
  2017-12-11 21:20 ` Philipp Stephani
  0 siblings, 1 reply; 8+ messages in thread
From: Tianxiang Xiong @ 2017-12-11 10:32 UTC (permalink / raw)
  To: Emacs developers

[-- 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 --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-12-14 14:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2017-12-14  5:22         ` Ted Zlatanov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).