Closed tadbyt closed 5 months ago
Closed the above bugs and copied their content into this bug, with minor reformatting, because we would do all of this work at the same time. It wouldn't make sense, for example, to update only one section of the reference.
@tadbyt How would you like me to credit you in the Co-authored-by:
trailer when I commit your suggested initial changes? Normally Git uses name + email, but all I have is your GitHub username. I can write Co-authored-by: @tadbyt
but I'm not sure if GitHub will understand that and correctly display you as a contributor. If you have no preference, that's fine too.
Also, update the Getters and Setters subsection to include package(set).
Update The Swift Programming Language to match the language changes implemented by SE-0386. Five subsections in the document were identified as being impacted by the implementation of SE-0386.
Guide > Access Control
Modules and Source Files
Change the title to Modules, Source Files and Packages.
Replace the first paragraph with: Swift’s access control model is based on the concepts of modules, and source files and packages.
Add the following two paragraphs to the end of the subsection:
Make the first instance of package in the first of the added paragraphs a hyperlink to https://developer.apple.com/documentation/xcode/swift-packages
Access Levels
Replace the first paragraph with:
Add the following as the second bullet in the subsequent list:
Append the following to the end of the next bullet: contained within a single module
Access Control Syntax
In the first paragraph, insert package (followed by a comma) between public and internal.
In the list of classes, insert the following after the public class: package class SomePackageClass {}
In the list of constants and variables, insert the following after the public var: package let somePackageConstant = 0
Reference > Lexical Structure
Keywords and Punctuation
In the list of keywords reserved in particular contexts, insert package (followed by a comma) between override and postfix.
Reference > Declarations
Access Control Levels
In the list given after the first paragraph, insert the following between the entries for public and internal:
In the list of access-level-modifiers, insert the following after the entry for internal and internal(set):
rdar://117171554