-
Couldn't load subscription status.
- Fork 10.6k
[stdlib] String.Index: Add _description & _debugDescription #61548
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
Conversation
While we’re vacillating on how best to add CustomStringConvertible and CustomDebugStringConvertible conformances to String.Index, add the prospective implementations as underscored-but-public members, to make life a little more bearable for people who need to debug string index operations.
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.
Yes please 👏
|
@swift-ci test |
|
@swift-ci test macOS platform |
|
@swift-ci smoke test macOS platform |
|
@swift-ci please smoke test macOS |
|
@swift-ci smoke test macOS platform |
|
@swift-ci please test macOS |
Implement a type summary for Swift's `String.Index`. The summary string follows the following: 1. Original proposal: https://forums.swift.org/t/improving-string-index-s-printed-descriptions/57027 2. Proposed implementation: swiftlang/swift#58479 3. Temporary(ish) near-`CustomStringConvertible` implementation: swiftlang/swift#61548 The associated test cases are taken from the test cases in swiftlang/swift#58479. rdar://99211823
Implement a type summary for Swift's `String.Index`. The summary string follows the following: 1. Original proposal: https://forums.swift.org/t/improving-string-index-s-printed-descriptions/57027 2. Proposed implementation: swiftlang/swift#58479 3. Temporary(ish) near-`CustomStringConvertible` implementation: swiftlang/swift#61548 The associated test cases are taken from the test cases in swiftlang/swift#58479. rdar://99211823 (cherry picked from commit c7146a3)
Implement a type summary for Swift's `String.Index`. The summary string follows the following: 1. Original proposal: https://forums.swift.org/t/improving-string-index-s-printed-descriptions/57027 2. Proposed implementation: swiftlang/swift#58479 3. Temporary(ish) near-`CustomStringConvertible` implementation: swiftlang/swift#61548 The associated test cases are taken from the test cases in swiftlang/swift#58479. rdar://99211823 (cherry picked from commit c7146a3)
Implement a type summary for Swift's `String.Index`. The summary string follows the following: 1. Original proposal: https://forums.swift.org/t/improving-string-index-s-printed-descriptions/57027 2. Proposed implementation: swiftlang/swift#58479 3. Temporary(ish) near-`CustomStringConvertible` implementation: swiftlang/swift#61548 The associated test cases are taken from the test cases in swiftlang/swift#58479. rdar://99211823 (cherry picked from commit c7146a3)
While we’re vacillating on how best to add CustomStringConvertible and CustomDebugStringConvertible conformances to String.Index, add the prospective implementations as underscored-but-public members, to make life a little more bearable for people who need to debug string index operations.