From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.emacs.devel Subject: Re: hash-table-{to, from}-alist Date: Sat, 22 Nov 2008 16:21:26 +0100 Message-ID: <20081122152126.GA4142@tomas> 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1227367249 31906 80.91.229.12 (22 Nov 2008 15:20:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Nov 2008 15:20:49 +0000 (UTC) Cc: Ted Zlatanov , tomas@tuxteam.de, Stefan Monnier , emacs-devel@gnu.org To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 22 16:21:51 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 1L3uIw-0005tI-H3 for ged-emacs-devel@m.gmane.org; Sat, 22 Nov 2008 16:21:50 +0100 Original-Received: from localhost ([127.0.0.1]:40373 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L3uHn-0003iZ-61 for ged-emacs-devel@m.gmane.org; Sat, 22 Nov 2008 10:20:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L3uHh-0003iU-Go for emacs-devel@gnu.org; Sat, 22 Nov 2008 10:20:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L3uHg-0003iI-7m for emacs-devel@gnu.org; Sat, 22 Nov 2008 10:20:33 -0500 Original-Received: from [199.232.76.173] (port=40651 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L3uHg-0003iF-3W for emacs-devel@gnu.org; Sat, 22 Nov 2008 10:20:32 -0500 Original-Received: from alextrapp1.equinoxe.de ([217.22.192.104]:36170 helo=www.elogos.de) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L3uHf-0000Zq-MM for emacs-devel@gnu.org; Sat, 22 Nov 2008 10:20:31 -0500 Original-Received: by www.elogos.de (Postfix, from userid 1000) id 34E019004F; Sat, 22 Nov 2008 16:21:26 +0100 (CET) Content-Disposition: inline In-Reply-To: <873ahkkkt5.fsf@xemacs.org> User-Agent: Mutt/1.5.15+20070412 (2007-04-11) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:105957 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sat, Nov 22, 2008 at 09:27:18PM +0900, Stephen J. Turnbull wrote: > tomas@tuxteam.de writes: >=20 > > On Fri, Nov 21, 2008 at 10:18:41PM -0500, Stefan Monnier wrote: > > [...] > > > I was thinking of something more like # where > > > "..." [...] > > I like this one more: it is more extensible [...] [...] > I'm not sure what's wrong with > > (let ((tbl (make-hash-table ...))) > (puthash key1 val1 tbl) > ...) > > as a read syntax for hash tables. Hm. Abstraction? Separate "how it's spelt" from "how it's done"? Not that I think it has much weight. Make-hash-table is an abstraction itself, after all. I couldn't decide between both variants. Regards - -- tom=C3=A1s > >=20 > > I like this one more: it is more extensible (not that lots of extens= ions > > will spring up, but at least the syntax is not in the way if someday= ... > > you know). >=20 > I'm not sure what's wrong with >=20 > (let ((tbl (make-hash-table ...))) > (puthash key1 val1 tbl) > ...) >=20 > as a read syntax for hash tables. >=20 > N.B. XEmacs and SXEmacs already have lots of object types. If you're > going to start proliferating `read'able print syntaxes, starting with > an extensible one would be nice. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFJKCN2Bcgs9XrR2kYRAncCAJ48gH/pAj1pwGYC30ib8tif2YqLFQCeLitk YgVNDIKOihglmb+j7a8PAec=3D =3DoX27 -----END PGP SIGNATURE-----