Language - Namespace (Scoping rule for name)

> Code - (Programming|Computer) Language > Code - Grammar / Syntax (Lexical)

1 - About

namespace.

Completely related to the notion of scope. See Language - Scope of an identifier (Variable, Package, Lexical)

Advertising

3 - Example

File System

Dynamic Language:

  • Code Shipping - (Module|Component). php definition: In the broadest definition namespaces are a way of encapsulating items. An example with directory as namespace, the file foo.txt can exist in both directory /home/greg and in /home/other, but two copies of foo.txt cannot co-exist in the same directory.

Markup Language: