From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David De La Harpe Golden Newsgroups: gmane.emacs.devel Subject: Re: hash-table-{to, from}-alist Date: Wed, 26 Nov 2008 02:16:13 +0000 Message-ID: <492CB16D.3070507@harpegolden.net> 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> <867i6tt4yz.fsf@lifelogs.com> <87bpw4k1z6.fsf@xemacs.org> <86bpw3d829.fsf@lifelogs.com> <86d4gjnz56.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1227665805 574 80.91.229.12 (26 Nov 2008 02:16:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Nov 2008 02:16:45 +0000 (UTC) Cc: Ted Zlatanov , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 26 03:17:50 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 1L59yK-0001F3-Sz for ged-emacs-devel@m.gmane.org; Wed, 26 Nov 2008 03:17:45 +0100 Original-Received: from localhost ([127.0.0.1]:50104 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L59xB-0004Ih-1p for ged-emacs-devel@m.gmane.org; Tue, 25 Nov 2008 21:16:33 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L59x6-0004IY-3Z for emacs-devel@gnu.org; Tue, 25 Nov 2008 21:16:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L59x3-0004I9-I0 for emacs-devel@gnu.org; Tue, 25 Nov 2008 21:16:26 -0500 Original-Received: from [199.232.76.173] (port=44693 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L59x3-0004I6-CB for emacs-devel@gnu.org; Tue, 25 Nov 2008 21:16:25 -0500 Original-Received: from harpegolden.net ([65.99.215.13]:42394) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L59x3-0002T4-16 for emacs-devel@gnu.org; Tue, 25 Nov 2008 21:16:25 -0500 Original-Received: from [87.198.54.45] (87-198-54-45.ptr.magnet.ie [87.198.54.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "David De La Harpe Golden", Issuer "David De La Harpe Golden Personal CA rev 3" (verified OK)) by harpegolden.net (Postfix) with ESMTP id 6174B8322; Wed, 26 Nov 2008 02:16:22 +0000 (GMT) User-Agent: Mozilla-Thunderbird 2.0.0.17 (X11/20081018) In-Reply-To: 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:106181 Archived-At: Stefan Monnier wrote: >> #s > > Looks OK, except I don't think it's a good idea to include ' in front of > key and eql. I know it's what we do right now, but in order to read it > back in, it's going to be more trouble. Also I'd generally prefer using > ":weakness" rather than "weak", so it's as close as possible to the key > args passed to make-hash-table. > The #s kind of bothers me. In common lisp, #s(a ...) is readable - as an instance of struct a [*]. Hence the "s". Now, hashtables may well use a struct for their metadata as an implementation detail, but the #s<...> does look to me like an odd mix of commmon lisp #s(...) struct-instance-literal syntax and #<...> printable-but-unreadable-object syntax. I realise that for emacs lisp compatibility with common lisp is a nongoal and compatibility with xemacs lisp is of some interest, so it's not a huge argument against #s<...>, I'm just saying I'm finding it a bit confusing coming from CL (mind you, CL anyway lacks any print/read roundtripping hashtable syntax) [*] CL-USER> (defstruct a b c) A CL-USER> (make-a :b 1 :c 2) #S(A :B 1 :C 2) CL-USER> #s(a :b 2 :c 3) #S(A :B 2 :C 3) CL-USER>