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

[stdlib] Add arg labels to _expectEnd #5485

Merged

Conversation

airspeedswift
Copy link
Member

@airspeedswift airspeedswift commented Oct 26, 2016

Resolving ABI FIXME #15

@airspeedswift
Copy link
Member Author

@swift-ci Please smoke test

@@ -1694,8 +1694,7 @@ internal func _arrayOutOfPlaceReplace<B, C>(
/// A _debugPrecondition check that `i` has exactly reached the end of
/// `s`. This test is never used to ensure memory safety; that is
/// always guaranteed by measuring `s` once and re-using that value.
// FIXME(ABI)#15 : add argument labels.
internal func _expectEnd<C : Collection>(_ i: C.Index, _ s: C) {
internal func _expectEnd<C : Collection>(of s: C, is i: C.Index) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extension Collection {
   internal func _expectEnd(at: Self.Index) { ... }
}

maybe?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about doing that, but it didn't sit right with me. assert-like things seem to feel a bit better as stand-alone functions than methods. Not sure I'm being rational about that tho.

@airspeedswift airspeedswift changed the title Add arg labels to _expectEnd [stdlib] Add arg labels to _expectEnd Oct 26, 2016
@airspeedswift airspeedswift merged commit 3f534c2 into swiftlang:master Oct 27, 2016
@airspeedswift airspeedswift deleted the expectEnd-labels-fixme branch October 27, 2016 01:04
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