Skip to content

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

/// 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