Basic Syntax

Namespace

English

Overview

A mechanism for grouping identifiers to avoid naming collisions.

Details

A mechanism that hierarchically separates names so identically named identifiers can coexist in different scopes, preventing name collisions in large-scale development. Many languages tie namespaces to directory structure or file layout -- Java packages like java.util, C++'s namespace keyword, and Python's module paths are all examples.

More Programming terms