Re: ES4 draft LAST CALL: Map

2008-03-21 Thread Waldemar Horwat
The current definition in 1.2.2 of what Map(o) does is a harmful dead end. The current behavior is: - If o is already a Map then leave it alone. - Otherwise enumerate the visible properties of o and construct a Map out of those. This is harmful because it's guaranteed to cause current and futu

RE: ES4 draft LAST CALL: Map

2008-03-21 Thread Lars Hansen
> -Original Message- > From: David Teller [mailto:[EMAIL PROTECTED] > Sent: 21. mars 2008 08:08 > To: Lars Hansen > Cc: es4-discuss@mozilla.org > Subject: RE: ES4 draft LAST CALL: Map > > On Fri, 2008-03-21 at 14:46 +, Lars Hansen wrote: > > My opinion

RE: ES4 draft LAST CALL: Map

2008-03-21 Thread David Teller
On Fri, 2008-03-21 at 14:46 +, Lars Hansen wrote: > My opinion is that if there are features that are primarily useful for > concurrency (and it sounds like what you have in mind is that) then we > should not try to guess about them until we start talking about > concurrency in earnest. > > --

RE: ES4 draft LAST CALL: Map

2008-03-21 Thread Lars Hansen
PROTECTED] On Behalf Of David Teller > Sent: 21. mars 2008 03:26 > To: es4-discuss@mozilla.org > Subject: Re: ES4 draft LAST CALL: Map > > I have a question related to collections in general. > > I have the impression that ES4 will someday accept some kind > of high-level

Re: ES4 draft LAST CALL: Map

2008-03-21 Thread David Teller
I have a question related to collections in general. I have the impression that ES4 will someday accept some kind of high-level concurrency, possibly Erlang-style. If so, we will probably need the ability to perform some kind of (destructive) pattern-matching/switch-type on the contents of a co

ES4 draft LAST CALL: Map

2008-03-20 Thread Lars Hansen
Last call for comments. Minor changes since previous drafts (and some comments at the beginning to address changes that are known to come). --lars Title: The class "Map" The class Map NAME: "The class 'Map'" FILE: spec/library/Map.html CATE