1474Re: [jslint] Collision between global var and function name
- Sep 9, 2010Icebox,
You cannot avoid having at least one global variable name. The only way a variable stops being global is from containment by a function, but at some point there must be a root function existing at the global level from which the first layer of scope is provided.
Alluding to an analogy, HTML and XML solve this problem by requiring one single root element per document, and no more, so that access to the global space always limited to a single container.
- << Previous post in topic Next post in topic >>