tag:blogger.com,1999:blog-3618780804544792727.post1917492447777613303..comments2022-09-17T23:29:02.269-07:00Comments on Ask a Wizard: Object: Container or TypeKris Kowalhttp://www.blogger.com/profile/01443956999129365941noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-3618780804544792727.post-976769558875253292009-12-17T14:25:24.624-08:002009-12-17T14:25:24.624-08:00This is a good point. In Chiron, when I provide t...This is a good point. In Chiron, when I provide the Set and subclass Dict types, the internal Object hash to Array collision bucket prefixes all hash keys with a "~" to prevent collisions with identifiers. The translation is entirely transparent.Kris Kowalhttps://www.blogger.com/profile/01443956999129365941noreply@blogger.comtag:blogger.com,1999:blog-3618780804544792727.post-63781267481030246112009-12-17T13:51:04.584-08:002009-12-17T13:51:04.584-08:00Forgot to add link to a recent discussion on relat...Forgot to add link to a recent discussion on related subject — http://groups.google.com/group/comp.lang.javascript/msg/d617552bb7d881a2kangaxhttps://www.blogger.com/profile/16684075828108388379noreply@blogger.comtag:blogger.com,1999:blog-3618780804544792727.post-72113866035035963572009-12-17T13:49:58.530-08:002009-12-17T13:49:58.530-08:00If you need truly robust hash, I would suggest not...If you need truly robust hash, I would suggest not to rely on `hasOwnProperty` and instead go with key augmentation. `hasOwnProperty` is known to lie in certain environments and setting unaltered keys can have side effects on an object itself (think "__proto__" in Gecko, where it's a "write-once" setter which changes object's [[Prototype]], and so an object itself indirectly).kangaxhttps://www.blogger.com/profile/16684075828108388379noreply@blogger.com