swift-book icon indicating copy to clipboard operation
swift-book copied to clipboard

The Swift Programming Language book

Results 115 swift-book issues
Sort by recently updated
recently updated
newest added

### Location https://docs.swift.org/swift-book/documentation/the-swift-programming-language/accesscontrol ### Description This subsection doesn't reflect the changes to Swift with respect to macros and packages. ### Correction Reword the first sentence in the first paragraph to:...

Content issue

### Location https://docs.swift.org/swift-book/documentation/the-swift-programming-language/protocols https://docs.swift.org/swift-book/documentation/the-swift-programming-language/declarations#Protocol-Subscript-Declaration https://docs.swift.org/swift-book/documentation/the-swift-programming-language/declarations#Protocol-Associated-Type-Declaration ### Description Add the following sentence to the end of the first paragraph in the introduction of the _Protocols_ section: Requirements may be provided for...

Enhancement

### Location https://docs.swift.org/swift-book/documentation/the-swift-programming-language/statements#Conditional-Compilation-Block ### Description The list of architectures next to the `arch()` platform condition might be out of date. ### Correction Is `arm64_32` officially supported? If so, it should...

Content issue

### Location https://docs.swift.org/swift-book/documentation/the-swift-programming-language/types ### Description Add a note (or paragraph), in the _Types_ section introduction, that explicitly defines a first-class type and enumerates the set of first-class types as well...

Enhancement

### Location https://docs.swift.org/swift-book/documentation/the-swift-programming-language/attributes ### Description In the introduction of the Attributes section, only two types of attributes are listed, those that apply to declarations and those that apply to types....

Add information to the `for`-`in` statement that the expression may also be a pack expansion expression, according to [SE-0408](https://github.com/apple/swift-evolution/blob/main/proposals/0408-pack-iteration.md). Marking this draft for now, but hoping to get this merged...

### Location https://github.com/apple/swift-book/blob/main/TSPL.docc/LanguageGuide/TheBasics.md#comments https://github.com/apple/swift-book/blob/main/TSPL.docc/LanguageGuide/TheBasics.md#integers https://github.com/apple/swift-book/blob/main/TSPL.docc/LanguageGuide/TheBasics.md#type-safety-and-type-inference ### Description According to [the PR](https://github.com/apple/swift-book/pull/203), it seems we want to remove comparisons to C and Objective-C. So, do we also need to fix such...

Content issue

### Location https://docs.swift.org/swift-book/documentation/the-swift-programming-language/attributes#attached ### Description SE-0407 adds conformances: for member role attached attributes. Also, correct two minor issues. ### Correction Append the following to the end of the second sentence...

Content issue

### Location https://docs.swift.org/swift-book/documentation/the-swift-programming-language/attributes#freestanding ### Description The freestanding attribute description is incomplete. It doesn't define any of its arguments. ### Correction The arguments to this attribute indicate the macro’s role and...

Content issue

### Location Chapter "Opaque Types" Section "Differences Between Opaque Types and Protocol Types” ### Description The section says that the `protoFlip(_:)` function, which accepts types that conforms to the `Shape`...

Content issue