We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
md5: 5483446fdf4d37083296d04e708f33f2
Issue Description:
We don't appear to document the way you can provide a default type in an associate's type declaration. Noted in https://forums.swift.org/t/a-question-about-associatedtype-in-protocols/16168
The text was updated successfully, but these errors were encountered:
NIOAsyncWriter
This is used quite a fair bit in the standard library for doing things like providing a default implementation of a Collection's Slice type
associatedtype SubSequence : Collection = Slice<Self> where Self.Element == Self.SubSequence.Element, Self.SubSequence == Self.SubSequence.SubSequence
It seems strange that a really useful and used (at least in std lib) isn't documented at all in the Swift book
Sorry, something went wrong.
Now that TSPL is open source, I've opened #40 to track this issue.
No branches or pull requests
Additional Detail from JIRA
md5: 5483446fdf4d37083296d04e708f33f2
Issue Description:
We don't appear to document the way you can provide a default type in an associate's type declaration. Noted in https://forums.swift.org/t/a-question-about-associatedtype-in-protocols/16168
The text was updated successfully, but these errors were encountered: