Skip to content

Commit cc7bdbf

Browse files
committed
Update package name description to include nested namespaces/packages
1 parent 5b78168 commit cc7bdbf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

design/mvp/WIT.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ All WIT packages are assigned a *package name*. Package names look like
4242

4343
* An optional *version field*, specified as [full semver](https://semver.org/).
4444

45+
🪺 With "nested namespaces and packages", package names are generalized to look
46+
like `foo:bar:baz/quux`, where `bar` is a nested namespace of `foo` and `quux`
47+
is a nested package of `baz`. See the [package declaration] section for more
48+
details.
49+
4550
Package names are specified at the top of a WIT file via a `package`
4651
declaration:
4752

@@ -853,6 +858,7 @@ wit-file ::= package-decl? (toplevel-use-item | interface-item | world-item)*
853858
```
854859

855860
## Package declaration
861+
[package declaration]: #package-declaration
856862

857863
WIT files optionally start with a package declaration which defines the ID of
858864
the package.

0 commit comments

Comments
 (0)