mirror of https://github.com/rust-lang/rfcs
Update text/0000-packages-as-optional-namespaces.md
Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de>
This commit is contained in:
parent
75dd867cec
commit
0db096f169
|
@ -7,7 +7,7 @@
|
|||
|
||||
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).
|
||||
|
||||
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.
|
||||
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 namespaces, the owners of `parent` has exclusive access to publishing crates in that namespace.
|
||||
|
||||
# Motivation
|
||||
|
||||
|
|
Loading…
Reference in New Issue