From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: hash-table-{to, from}-alist Date: Mon, 24 Nov 2008 11:21:24 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <867i6tt4yz.fsf@lifelogs.com> References: <863aknitfg.fsf@lifelogs.com> <20080830051807.GB9625@tomas> <86bpwe9su5.fsf@lifelogs.com> <867i6z1jo5.fsf_-_@lifelogs.com> <86ej14vhvg.fsf@lifelogs.com> <20081122054510.GA28298@tomas> <873ahkkkt5.fsf@xemacs.org> <20081122152126.GA4142@tomas> <87vdufk6do.fsf@xemacs.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1227554308 4698 80.91.229.12 (24 Nov 2008 19:18:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Nov 2008 19:18:28 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 24 20:19:31 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L4gy2-0002bV-CC for ged-emacs-devel@m.gmane.org; Mon, 24 Nov 2008 20:19:30 +0100 Original-Received: from localhost ([127.0.0.1]:51390 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L4gws-0003rO-RY for ged-emacs-devel@m.gmane.org; Mon, 24 Nov 2008 14:18:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L4f80-0006lX-1q for emacs-devel@gnu.org; Mon, 24 Nov 2008 12:21:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L4f7w-0006kO-3D for emacs-devel@gnu.org; Mon, 24 Nov 2008 12:21:38 -0500 Original-Received: from [199.232.76.173] (port=38582 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L4f7v-0006kJ-FP for emacs-devel@gnu.org; Mon, 24 Nov 2008 12:21:35 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:51698 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L4f7v-0000K2-7r for emacs-devel@gnu.org; Mon, 24 Nov 2008 12:21:35 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1L4f7r-0008SF-LA for emacs-devel@gnu.org; Mon, 24 Nov 2008 17:21:31 +0000 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Nov 2008 17:21:31 +0000 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Nov 2008 17:21:31 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:Ampi16jV91lOe2GKWxZ2JOCVzhA= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:106098 Archived-At: On Mon, 24 Nov 2008 10:44:44 -0500 Richard M Stallman wrote: RMS> BTW, it turns out that in XEmacs and its descendants prin1 uses the CL RMS> structure syntax when `print-readably' is bound to t: RMS> #s(hash-table size 1 data (x x-value)) RMS> Being compatible with that seems like a good idea, RMS> if there is no obstacle. The equality test is necessary if it was given originally (meaning, if it's not 'eql). I don't think we should ever omit it, even if it's the default value, for readability. The :weakness, :rehash-size, and :rehash-threshold options to make-hash-table, can probably be omitted when they are the defaults. Would this work? #s(hash-table size 2 test equal data (k1 v1) (k2 v2)) Finally, the size is just a hint with make-hash-table; should the (read) allow wrong sizes or throw an error? Thanks Ted