Skip to content

Commit 10da84b

Browse files
committed
Another stab at defining namespace.
1 parent 0ce54e6 commit 10da84b

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

src/glossary.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,13 @@ identifiers, and labels are used to refer to an entity.
144144

145145
### Namespace
146146

147-
A [*namespace*] is a set of [names](#name) where each name unambiguously
148-
refers to a specific [entity](#entity). Namespaces are organized in a
149-
hierarchy, where each level of the hierarchy has its own collection of named
150-
entities.
147+
A *namespace* is a logical grouping of declared [names](#name) based on the
148+
kind of [entity](#entity) the name refers to. Namespaces allow the occurrence
149+
of a name in one namespace to not conflict with the same name in another
150+
namespace.
151+
152+
Within a namespace, names are organized in a hierarchy, where each level of
153+
the hierarchy has its own collection of named entities.
151154

152155
### Nominal types
153156

src/names/namespaces.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# Namespaces
22

3-
A *namespace* is a set of [names] where each name unambiguously refers to a
4-
specific [entity]. Namespaces are organized in a hierarchy, where each level
5-
of the hierarchy has its own collection of named entities.
3+
A *namespace* is a logical grouping of declared [names]. Names are segregated
4+
into separate namespaces based on the kind of entity the name refers to.
5+
Namespaces allow the occurrence of a name in one namespace to not conflict
6+
with the same name in another namespace.
7+
8+
Within a namespace, names are organized in a hierarchy, where each level of
9+
the hierarchy has its own collection of named entities.
610

711
There are several different namespaces that each contain different kinds of
812
entities. The usage of a name will look for the declaration of that name in

0 commit comments

Comments
 (0)