Skip to content

Commit d7c1ac7

Browse files
committed
Move "Parameter index" section to Alternatives considered.
1 parent 181050a commit d7c1ac7

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

proposals/NNNN-lifetime-dependency.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,15 @@ init() dependsOn(immortal) {
904904
}
905905
```
906906

907+
### Parameter index for lifetime dependencies
908+
909+
Internally, the implementation records dependencies based on the parameter index.
910+
This could be exposed as an alternate spelling if there were sufficient demand.
911+
912+
```swift
913+
func f(arg1: Type1, arg2: Type2, arg3: Type3) -> dependsOn(0) ReturnType
914+
```
915+
907916
## Future Directions
908917

909918
### Lifetime Dependencies for Tuples
@@ -915,15 +924,6 @@ func f(a: A, b: B) -> (dependsOn(a) C, B)
915924
```
916925
We expect to address this in the near future in a separate proposal.
917926

918-
### Parameter index for lifetime dependencies
919-
920-
Internally, the implementation records dependencies based on the parameter index.
921-
This could be exposed as an alternate spelling if there were sufficient demand.
922-
923-
```swift
924-
func f(arg1: Type1, arg2: Type2, arg3: Type3) -> dependsOn(0) ReturnType
925-
```
926-
927927
### Component lifetime
928928

929929
In the current design, aggregating multiple values merges their scopes.

0 commit comments

Comments
 (0)