You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: design/mvp/WIT.md
+6-26Lines changed: 6 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -65,8 +65,7 @@ WIT packages can be defined in a collection of files. At least one of these
65
65
files must specify a package name. Multiple files can specify the `package`,
66
66
though they must all agree on what the package name is.
67
67
68
-
Alternatively, many packages can be declared consecutively in one or more
69
-
files, if the "explicit" package notation is used:
68
+
Additionally, many packages can be declared consecutively in one or more files, if the "explicit" package notation is used:
70
69
71
70
```wit
72
71
package local:a {
@@ -78,6 +77,8 @@ package local:b {
78
77
}
79
78
```
80
79
80
+
It is worth noting that when defining packages "explicitly" with a scope, that it does not remove the need for the "root" package declaration above. That is, there must be a single "root" package that is the container of all such "explicitly" defined packages.
81
+
81
82
Package names are used to generate the [names of imports and exports]
82
83
in the Component Model's representation of [`interface`s][interfaces] and
83
84
[`world`s][worlds] as described [below](#package-format).
@@ -890,36 +891,15 @@ readability but this isn't required.
0 commit comments