On Fri, Apr 16, 2010 at 8:58 PM, Brendan Eich <bren...@mozilla.com> wrote:

>
> Another Harmony idea:
> http://wiki.ecmascript.org/doku.php?id=strawman:names for unforgeable
> property names not equated to any string. These cannot collide, and with
> sugar to let them be used with . (not only in computed property accesses
> using []), we may have a complete solution for injecting new "names" into
> standard prototypes without breaking existing code.
>
>
Excuse me, seems I missed something. I thought first that you mentioned them
in "private" viewpoint, but in this sentence you say that "names" will help
to place standard methods/properties in built-ins prototypes avoiding naming
collisions. But how will it look? Can you show an example, it is very
interesting. If you e.g. place "getPrototype" "name" into "Object.prototype"
how will it help to avoid collisions if user will place "string property"
"getPrototype" into the "Object.prototype" (or just in global object)? How
will it help for "object detection"?

Dmitry.
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to