-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
[stdlib] using static method dispatch instead of failable casts #220
Conversation
@gribozavr please have a look. |
} | ||
|
||
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra empty lines.
e6ae147
to
4b705a0
Compare
Updated. |
S.SubSequence : SequenceType, | ||
S.SubSequence.Generator.Element == Element, | ||
S.SubSequence.SubSequence == S.SubSequence | ||
>(_ base: S) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This changes the signature. We want to constrain SequenceType.SubSequence
this way anyway, but don't have the necessary language feature. Nevertheless, this requires a writing a proposal in swift-evolution.
The change LGTM, but because of the signature change in |
Will do. Thanks for reviewing it. |
Overriding `AnySequence.dropFirst` and `AnySequence.prefix` to delegate these operations to an underlying sequence, thus simplifying default implementations in `Sequence`.
4b705a0
to
d225b37
Compare
Rebased and ready to go. |
Needs splitting. |
…ext_for_key Temporarily move dispatch_context_for_key test into the unreliable tests
Demote ColonWhitespace to a lint rule
[NFC] Fix 'Traling' typo
Add SwiftyStoreKit
Overriding
AnySequence.dropFirst
andAnySequence.prefix
to delegatethese operations to an underlying sequence, thus simplifying default
implementations in
Sequence
.