unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Hash table read syntax
@ 2009-12-22 19:17 Chong Yidong
  2009-12-22 19:31 ` Chong Yidong
  0 siblings, 1 reply; 4+ messages in thread
From: Chong Yidong @ 2009-12-22 19:17 UTC (permalink / raw)
  To: Teodor Zlatanov; +Cc: emacs-devel

I think there's a problem with the design of the hash table read syntax:

(make-hash-table)
#s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8 data ())

The plist ought to use `:size', `:test', `:rehash-size', etc., rather
than `size', `test', `rehash-size', etc.  Otherwise, it's inconsistent
with the arguments to `make-hash-table', which uses `:size', `:test',...

I would like to make this change now, before it becomes "official" with
the Emacs 23.2 release.  Any objections?




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

* Re: Hash table read syntax
  2009-12-22 19:17 Hash table read syntax Chong Yidong
@ 2009-12-22 19:31 ` Chong Yidong
  2009-12-22 22:03   ` Ted Zlatanov
  2009-12-23 10:31   ` Stephen J. Turnbull
  0 siblings, 2 replies; 4+ messages in thread
From: Chong Yidong @ 2009-12-22 19:31 UTC (permalink / raw)
  To: Teodor Zlatanov; +Cc: emacs-devel

Chong Yidong <cyd@stupidchicken.com> writes:

> I think there's a problem with the design of the hash table read syntax:
>
> (make-hash-table)
> #s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8 data ())
>
> The plist ought to use `:size', `:test', `:rehash-size', etc., rather
> than `size', `test', `rehash-size', etc.  Otherwise, it's inconsistent
> with the arguments to `make-hash-table', which uses `:size', `:test',...
>
> I would like to make this change now, before it becomes "official" with
> the Emacs 23.2 release.  Any objections?

Never mind, I just remembered that the absence of a colon is for
compatibility with XEmacs.  LAME.




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

* Re: Hash table read syntax
  2009-12-22 19:31 ` Chong Yidong
@ 2009-12-22 22:03   ` Ted Zlatanov
  2009-12-23 10:31   ` Stephen J. Turnbull
  1 sibling, 0 replies; 4+ messages in thread
From: Ted Zlatanov @ 2009-12-22 22:03 UTC (permalink / raw)
  To: emacs-devel

On Tue, 22 Dec 2009 14:31:54 -0500 Chong Yidong <cyd@stupidchicken.com> wrote: 

CY> Chong Yidong <cyd@stupidchicken.com> writes:
>> I think there's a problem with the design of the hash table read syntax:
>> 
>> (make-hash-table)
>> #s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8 data ())
>> 
>> The plist ought to use `:size', `:test', `:rehash-size', etc., rather
>> than `size', `test', `rehash-size', etc.  Otherwise, it's inconsistent
>> with the arguments to `make-hash-table', which uses `:size', `:test',...
>> 
>> I would like to make this change now, before it becomes "official" with
>> the Emacs 23.2 release.  Any objections?

CY> Never mind, I just remembered that the absence of a colon is for
CY> compatibility with XEmacs.  LAME.

Yeah, it definitely looks unpleasant.  The reader could accept both
forms but it's probably not worth the trouble.

Ted





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

* Re: Hash table read syntax
  2009-12-22 19:31 ` Chong Yidong
  2009-12-22 22:03   ` Ted Zlatanov
@ 2009-12-23 10:31   ` Stephen J. Turnbull
  1 sibling, 0 replies; 4+ messages in thread
From: Stephen J. Turnbull @ 2009-12-23 10:31 UTC (permalink / raw)
  To: Chong Yidong; +Cc: Teodor Zlatanov, emacs-devel

Chong Yidong writes:

 > Never mind, I just remembered that the absence of a colon is for
 > compatibility with XEmacs.  LAME.

Actually, no, it's for compatibility with the versions of Common Lisp
that were supported by Lucid Energize in about 1992, when generic hash
tables for Emacsen were implemented.  Guy and Kent admitted that it
was a mistake, though, so I guess we could too.





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

end of thread, other threads:[~2009-12-23 10:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-22 19:17 Hash table read syntax Chong Yidong
2009-12-22 19:31 ` Chong Yidong
2009-12-22 22:03   ` Ted Zlatanov
2009-12-23 10:31   ` Stephen J. Turnbull

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).