Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-3458] Collapse various collection wrappers using conditional conformance #46046

Closed
airspeedswift opened this issue Dec 19, 2016 · 2 comments
Assignees
Labels
affects ABI Flag: Affects ABI improvement standard library Area: Standard library umbrella swift evolution proposal needed Flag → feature: A feature that warrants a Swift evolution proposal

Comments

@airspeedswift
Copy link
Member

Previous ID SR-3458
Radar rdar://problem/31411207
Original Reporter @airspeedswift
Type Improvement
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Improvement, AffectsABI, swift-evolution-proposal-needed
Assignee @airspeedswift
Priority Medium

md5: c511734b8d422b61a3127634ab25d21c

Issue Description:

The conditional conformance feature from the generics manifesto, slated for Swift 4, enables the collapsing of a number of different wrapper types over bidirectional and random access collections in the standard library to be collapsed into single types:

  • LazyFilter*Collection should be collapsed into LazyFilterCollection

  • LazyMap*Collection should be collapsed into LazyMapCollection

  • *Slice should be collapsed into Slice

  • Default*Indices should be collapsed onto DefaultIndices

  • Reversed*Collection should be collapsed onto ReversedCollection

This would resolve ABI FIXMEs #27, 42, 45, 59, 66, 75

@bob-wilson
Copy link

@swift-ci create

@bob-wilson
Copy link

This is done in #12913

We will track Lazy and Range refactorings separately.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects ABI Flag: Affects ABI improvement standard library Area: Standard library umbrella swift evolution proposal needed Flag → feature: A feature that warrants a Swift evolution proposal
Projects
None yet
Development

No branches or pull requests

2 participants