File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -144,10 +144,13 @@ identifiers, and labels are used to refer to an entity.
144
144
145
145
### Namespace
146
146
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.
151
154
152
155
### Nominal types
153
156
Original file line number Diff line number Diff line change 1
1
# Namespaces
2
2
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.
6
10
7
11
There are several different namespaces that each contain different kinds of
8
12
entities. The usage of a name will look for the declaration of that name in
You can’t perform that action at this time.
0 commit comments