Skip to content

Commit 0c4e369

Browse files
committed
subtype -> nested types.
1 parent 78f02f6 commit 0c4e369

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

proposals/0000-compiler-settings.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,9 @@ can be one of:
184184
synthesizes cases for depending on internal compiler data (e.x.: features for
185185
`UpcomingFeatureCompilerSetting`)
186186

187-
We purposely keep all custom types defined for `CompilerSetting` as subtypes of
188-
`CompilerSetting` in order to avoid polluting the global namespace. Thus we
189-
would necessarily define in the stdlib all of the custom types as:
187+
We purposely keep all custom types defined for `CompilerSetting` as nested types
188+
within `CompilerSetting` in order to avoid polluting the global namespace. Thus
189+
we would necessarily define in the stdlib all of the custom types as:
190190

191191
```swift
192192
extension CompilerSetting {
@@ -238,7 +238,7 @@ where one must have a keyword preventing any ambiguity. Adding the enum
238238
added to the compiler for `Result` will also guarantee that any user defined
239239
`CompilerSetting` will take precedence over the `CompilerSetting` type. In such
240240
a situation, the user can spell `CompilerSetting` as `Swift.CompilerSetting` as
241-
needed. All of the subtypes of `CompilerSetting` cannot cause any source
241+
needed. All of the nested types within `CompilerSetting` cannot cause any source
242242
compatibility issues since they are namespaced within `CompilerSetting`.
243243

244244
## ABI compatibility

0 commit comments

Comments
 (0)