Skip to content

[stdlib][WIP] Recursive where clause constraints #9370

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

Closed
wants to merge 15 commits into from

Conversation

airspeedswift
Copy link
Member

@airspeedswift airspeedswift commented May 6, 2017

Add protocol where clauses that require things like protocol Collection where SubSequence: Collection

Builds on top of #8990, no new test failures.

@airspeedswift
Copy link
Member Author

@DougGregor it seems if I write them as where clauses on protocols, I can add recursive constraints on things like Collection.SubSequence: Collection that compile and work fine. I think this is all we need to remove the need for std lib users to have to specify unnecessary constraints.

@airspeedswift
Copy link
Member Author

turns out we don't even need the prior PRs – this can be done directly into master. Re-raised as #9374

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant