On Apr 15, 2011, at 9:56 PM, Sam Tobin-Hochstadt wrote: > 1. The global object (which is what's originally under discussion > here) also gives you "dynamic scope" for top-level variables.
Right -- this is important and it is a deoptimer for optimizing implementations, but they can cope. The real problem is for JS hackers who cannot be sure their foopey typo (when they meant foopy) won't resolve to something else, accidentally or maliciously. > 2. Again, the reason that Dave and I have worked hard to avoid holes > in the lexical scoping of identifiers in modules is for programmers to > understand programs -- not for efficiency at all. I don't know what > else to say to persuade you of this, but making identifier resolution > fast is not "the main reason". Well, you've said it, that's enough on its face ;-). Developers I talk to really want early error on typos, it's a no-brainer. Dmitry, if you mean something other than revoking this win of Harmony lexical scoping, please correct me. Otherwise, I do not see any good in reinjecting the global object (directly or via some kind of proxy) onto the scope chain. /be _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

