For those of you who are interested, I've started a draft collection ofdesign principles<http://code.google.com/p/google-web-toolkit-incubator/wiki/JsMap?updated=JsMap&ts=1220629951>for the js map collection. However, don't feel required to read through them, as I'm going to throw together another straw man using them and send it out to the list.
On Fri, Sep 5, 2008 at 11:28 AM, BobV <[EMAIL PROTECTED]> wrote: > > On Fri, Sep 5, 2008 at 7:45 AM, Joel Webber <[EMAIL PROTECTED]> wrote: > > 2. Can you actually use an arbitrary object as the key type? Based on the > > native put() implementation (map[key] = value), I'd guess not. I may be > > missing something, but I don't see any way to limit the key type as it's > > currently specified. > > If you're willing to rely on an implementation detail like this, the > identity hashCode value of an object is based on a per-module counter. > You could use this in web mode, and in hosted mode, just delegate to > an IdentityHashMap. > > > -- > Bob Vawter > Google Web Toolkit Team > > > > -- "There are only 10 types of people in the world: Those who understand binary, and those who don't" --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---
