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

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

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