From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tianxiang Xiong Newsgroups: gmane.emacs.devel Subject: Print representation of records and hash tables Date: Mon, 11 Dec 2017 02:32:13 -0800 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c1cbf3031a79905600e0c99" X-Trace: blaine.gmane.org 1512988382 14299 195.159.176.226 (11 Dec 2017 10:33:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 11 Dec 2017 10:33:02 +0000 (UTC) To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 11 11:32:57 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOLOI-0003J1-35 for ged-emacs-devel@m.gmane.org; Mon, 11 Dec 2017 11:32:54 +0100 Original-Received: from localhost ([::1]:52098 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOLON-0002yE-N9 for ged-emacs-devel@m.gmane.org; Mon, 11 Dec 2017 05:32:59 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39885) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOLNh-0002lH-Hs for emacs-devel@gnu.org; Mon, 11 Dec 2017 05:32:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOLNf-00019B-Sn for emacs-devel@gnu.org; Mon, 11 Dec 2017 05:32:16 -0500 Original-Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]:36964) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eOLNf-00017N-MB for emacs-devel@gnu.org; Mon, 11 Dec 2017 05:32:15 -0500 Original-Received: by mail-wm0-x229.google.com with SMTP id f140so13096753wmd.2 for ; Mon, 11 Dec 2017 02:32:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=c6Y+grJB3DpLGDENXMNq3si+v9pxm25U/phOcr5l0QQ=; b=cPE+wBDyyrvhzr3bupTcBI+2Ha7NEwDwXwySE4wzp1Fw36XDilYF+mW6PwRLIboMvc EIpiOTzMO0sFI6fZk1YrRnaQaZMw4c39VZcLaqL6LGFtucME6z8X9M6vKWLNLmrrLfxW NLW7qNmqcCBKL3wJsxA21FXGOeRV8KDjJwCqcW7RbgIMldxTNf7qpX43fuxiV+vandxd kz+uk6NDW4B0cLDvLQjwYJt2Rw015Tlw6w2mB2tOhWroIqxcJRp5zrTuA9XYog06Uwyz RTpmOZZkZ/tS2KL9Wx3p+mHkV7IpUP8ubiaFD+vLAlB90aVWE96CiJHTujmiI6EAJMHE bHSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=c6Y+grJB3DpLGDENXMNq3si+v9pxm25U/phOcr5l0QQ=; b=KR6In8drtC3gVZUokLPCUvGS/HnPQAh61PGdX/++/EZW9360HKzgwK6nBZRkvYutUN qS3KHlqjod8ANgCF+YIAHmcNr4PMeDaC7G/79ub+q4Re2QQ2rIw1XhhnIgjQDqxqc6HC ivzjwPNiNuxdYCKHwfd2OFl6A6mlEeg0srJpfTO+yWAF3jir5b9Xr8LpK/C9peulN9Px fklsmSblmISFROc+lCac6MihSfdOlH60RXOhCydqF3ODCSj8HDGpyTRCgEeZVgzAynoL 8ym0ZisCxZG8HlYoPfUNd09AASMnI1bZ15MMw1qYiwIiXh3lS8DUCn98xjRgYxKoRpn3 b0qQ== X-Gm-Message-State: AKGB3mLCGmtoWNzzHvF02Ijecu8/Y536Z9vxPzOEB6OPauUAqFUOF/0t H1NsQlx+i5GmSDlZwnaI31WLj1SksoCutNwygV/7PQ== X-Google-Smtp-Source: ACJfBou0RWuH8ZIB8Nx4EvZESRBUNPx3UCHIaKj5sLHs8KXpl8i0YWxH5M3K1R3ZfoYuvFkfVGuxgSGos620hvnum3Q= X-Received: by 10.80.208.150 with SMTP id v22mr462041edd.62.1512988333941; Mon, 11 Dec 2017 02:32:13 -0800 (PST) Original-Received: by 10.80.178.228 with HTTP; Mon, 11 Dec 2017 02:32:13 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::229 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:220876 Archived-At: --94eb2c1cbf3031a79905600e0c99 Content-Type: text/plain; charset="UTF-8" Emacs 26 introduces records, which have a print representation 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? --94eb2c1cbf3031a79905600e0c99 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Emacs 26 introduces records, which have a pr= int representation starting with `#s`, followed by a list of contents.<= div>
This seems similar to the print representation of hash t= ables:

(make-hash-table)=C2=A0
;; =3D>= ; #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 d= ifferent objects w/ such similar print representations?
--94eb2c1cbf3031a79905600e0c99--