-
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
[Diags] Add an edu note explaining StringInterpolationProtocol informal requirements #30827
Conversation
- Not be marked `static` | ||
- Either return `Void` or be marked `@discardableResult` | ||
|
||
To learn more about customizing string interpolation behavior, see the standard library documentation of the [`ExpressibleByStringInterpolation`](https://developer.apple.com/documentation/swift/expressiblebystringinterpolation) and [`StringInterpolationProtocol`](https://developer.apple.com/documentation/swift/stringinterpolationprotocol) protocols. |
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.
I'm not sure these links are stable, but this is the only hosted documentation for these protocols I know of
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.
Perhaps some of the SourceKit folks will have some ideas about how to handle URLs like this, or at least ideas about who to ask. Paging @nathawes.
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.
Not sure myself, sorry.
@amigi do you know if these are the best links to use / who to ask?
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.
I will check and follow up. Thanks for asking!
- Not be marked `static` | ||
- Either return `Void` or be marked `@discardableResult` | ||
|
||
To learn more about customizing string interpolation behavior, see the standard library documentation of the [`ExpressibleByStringInterpolation`](https://developer.apple.com/documentation/swift/expressiblebystringinterpolation) and [`StringInterpolationProtocol`](https://developer.apple.com/documentation/swift/stringinterpolationprotocol) protocols. |
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.
Perhaps some of the SourceKit folks will have some ideas about how to handle URLs like this, or at least ideas about who to ask. Paging @nathawes.
3d61d6b
to
01c0250
Compare
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.
Some more refinements later on in the note. (Sorry, I should have noticed these issues earlier.)
01c0250
to
68530ac
Compare
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.
LGTM!
@swift-ci please smoke test |
@swift-ci please smoke test macOS |
1 similar comment
@swift-ci please smoke test macOS |
No description provided.