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
@@ -22,7 +22,7 @@ Swift already offers access levels with their respective modifiers to declaratio
22
22
but there is currently no equivalent official feature for dependencies.
23
23
24
24
The author of a library may have a different intent for each of the library dependencies;
25
-
some are expected to be known to the library clients while other are for implementation details internal to the package, module, or source file.
25
+
some are expected to be known to the library clients while others are for implementation details internal to the package, module, or source file.
26
26
Without a way to enforce the intended access level of dependencies
27
27
it is easy to make a mistake and expose a dependency of the library to the library clients by referencing it from a public declaration even if it's intended to remain an implementation detail.
28
28
@@ -261,7 +261,7 @@ it can break source compatibility in code relying of those behaviors.
261
261
### Hiding dependency for non-resilient modules
262
262
263
263
Hiding dependencies on non-resilient modules would be possible in theory but requires rethinking a few restrictions in the compilation process.
264
-
The main restriction is the need of the compiler to know the memory layout of imported types, which can depend on a transitive dependencies.
264
+
The main restriction is the need of the compiler to know the memory layout of imported types, which can depend on transitive dependencies.
265
265
Resilient modules can provide this information at run time so the transitive module isn't required at build time.
266
266
Non-resilient modules do not provide this information at run time, so the compiler must load the transitive dependencies at build time to access it.
267
267
Solutions could involve copying the required information in each modules,
0 commit comments