From: Thomas 'PointedEars' Lahn on
Gabriel Gilini wrote:

> Ry Nohryb wrote:
>> David Mark wrote:
>> > /**
>> > * Create namespace
>> > */
>> > if (!window.qx) {
>> > window.qx = {};
>> >
>> > }
>>
>> > Could really end the review right there. The first line of code
>> > augments a host object for no reason other than ignorance.
>>
>> "window" is not a host object. It's an alias of the global object:
> No it isn't. It is a property of the global object.

And a host-defined one at that, as specified in ES3F, section 10.1.5, second
item, first sentence, and ES5, section 15.1, last paragraph, first sentence.
(Given how many times the last sentence has been misunderstood, probably it
should have never been included in the Specification in the first place.)


PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f806at$ail$1$8300dec7(a)news.demon.co.uk>