Loading ...
Sorry, an error occurred while loading the content.

1474Re: [jslint] Collision between global var and function name

Expand Messages
  • Cheney, Edward A SSG RES USAR
    Sep 9, 2010
    • 0 Attachment

      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.

    • Show all 6 messages in this topic