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
@@ -38,10 +38,9 @@ Swift-evolution thread: [Discussion thread topic for that proposal](https://foru
38
38
## Motivation
39
39
40
40
Today, `where` clauses on contextually generic declarations, including protocolextension members, are expressed indirectly by placing them inside conditional extensions. Unless constraints are identical, every such declaration requires a separate extension.
41
-
This dependence on extensions can be an obstacle to grouping semantically related APIs, stacking up constraints and,
42
-
sometimes, the legibility of heavily generic interfaces.
41
+
This dependence on extensions can be an obstacle to grouping semantically related APIs, stacking up constraints, and sometimes the legibility of heavily generic interfaces.
43
42
44
-
It is reasonable to expect a `where` clause to work anywhere a constraint can be meaningfully imposed, meaning both of these structuring styles should be available to the user:
43
+
It is reasonable to expect a `where` clause to work anywhere a constraint can be meaningfully imposed, that is, both of these structuring styles should be available to the user:
45
44
46
45
```swift
47
46
// 'Foo' can be any kind of nominal type declaration.
@@ -76,4 +75,4 @@ This is an additive change with no impact on the ABI and existing code.
76
75
77
76
## Effect on API resilience
78
77
79
-
For public declarations in resilient libraries, moving a constraint from an extension to a member and vice versa will not be a source-breaking change, but will break the ABI due to subtle mangling differences.
78
+
For public declarations in resilient libraries such as the Standard Library, moving a constraint from an extension to a member and vice versa will break the ABI due to subtle mangling differencesas of the current implementation.
0 commit comments