Skip to content

Conversation

@natecook1000
Copy link
Member

Adds a new BorrowingSequence and makes Sequence extend the new protocol.

Issues still to tackle:

  • unsure how to handle availability for Sequence protocol when its declaration would require the availability-constrained BorrowingSequence – availability checking currently off
  • conditionally-conforming Sequence types (like Range<Int>) don't implicitly conform to BorrowingSequence

So far this runs into the issue that conditionally-conforming Sequence
types (like Range<Int>) don't implicitly conform to BorrowingSequence.
@natecook1000 natecook1000 changed the title Initial work on BorrowingSequence above Sequence WIP: Add BorrowingSequence above Sequence Dec 15, 2025
@benrimmington
Copy link
Contributor

Library Evolution in Swift:

Changes to a protocol’s list of refined protocols are not allowed.

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.

2 participants