Skip to content

Commit cc5872d

Browse files
authored
Merge pull request rust-lang#8 from epage/summary
Update summary to focus on `::` semantics
2 parents 3396a2e + 11c6354 commit cc5872d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

text/0000-packages-as-optional-namespaces.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
# Summary
77

8-
Grant exclusive access to publishing crates `parent::foo` for owners of crate `parent`.
8+
Languages like C++ have open namespaces where anyone can write code in any namespace. In C++'s case, this includes the `std` namespace and is only limited by convention. In contrast, Rust has closed namespaces which can only include code from the original namespace definition (the crate).
99

10-
Namespaced crates can be named in Rust code with their full name (`parent::foo`).
10+
This proposal extends Rust to have partially open namespaces by allowing crate owners to create crates like `parent:foo` that will be available as part of the crate `parent`'s namespace. To protect the use of open namepsaces, the owners of `parent` has exclusive access to publishing crates in that namespace.
1111

1212
# Motivation
1313

0 commit comments

Comments
 (0)