Skip to main content
namespace

namespace

10 6.8
A system in a computer that keeps names separate so they do not conflict
  • noun
  • /ˈneɪmˌspeɪs/
  • Specialized
: espacio de nombres
  • In programming, using a different namespace can help avoid conflicts between functions with the same name.

Examples

  • Inkscape SVG files use the Inkscape namespace to store some extra information used by the program.

    Blog text (26)
  • The .NET Framework uses namespace nesting a lot, with good reason.

    Blog text (19)
  • But we also had another namespace in use that we identified above.

    Blog text (19)
  • So what's an example of a global namespace these guys worry about?

  • The name of your namespace reflects who created it and what its purpose is.

    Blog text (19)
  • It's always private because these namespaces are only used inside of our view.

  • Also required is the namespace to use when parsing the response.

    Blog text (6)
  • In the second part of our learning C# series, we're going to explain namespaces.

    Blog text (19)
  • But in the portable assembly project, the "System.Threading.Tasks" namespace is not available.

    Blog text (30)
  • Namespaces ensure uniqueness. Namespaces can determine how a method is used.

    Blog text (19)

Surface Forms

namespace singular
namespaces plural

Morphology

namespace = name + space (transparent) = name + space

The components 'name' + 'space' combine directly to denote an area or domain for names; although it's a technical computing term, the composition is obvious.

Etymology

The word namespace is made of name and space, meaning a 'space' for 'names'. Think of it like separate shelves with labels so names do not get mixed up, and in computing a namespace keeps names apart to avoid conflicts.