Skip to content

Commit 181050a

Browse files
committed
Remove redundant future direction: containers and their elements
1 parent a9ca58d commit 181050a

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

proposals/NNNN-lifetime-dependency.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -915,15 +915,6 @@ func f(a: A, b: B) -> (dependsOn(a) C, B)
915915
```
916916
We expect to address this in the near future in a separate proposal.
917917

918-
### Lifetime Dependencies for containers and their elements
919-
920-
It should be possible to return containers with collections of lifetime-constrained elements.
921-
For example, a container may want to return a partition of its contents:
922-
```swift
923-
borrowing func chunks(n: Int) -> dependsOn(self) SomeList<dependsOn(self) Span<UInt8>>
924-
```
925-
We're actively looking into ways to support these more involved cases and expect to address this in a future proposal.
926-
927918
### Parameter index for lifetime dependencies
928919

929920
Internally, the implementation records dependencies based on the parameter index.

0 commit comments

Comments
 (0)