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

The Swift Programming Language book

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

This change adds documentation for isolation inference from class inheritance, overridden methods, and protocol conformances. These rules are buried in old proposal documents, and they deserve documentation in TSPL, especially...

This change introduces a section on global-actor isolated protocol conformances, which were introduced in [SE-0470](https://github.com/swiftlang/swift-evolution/blob/main/proposals/0470-isolated-conformances.md). Fixes: rdar://148361008

## Actor implementing protocol with public parameters requires explicit Sendable conformance in Swift Package, but not in regular projects ### Description When an actor implements a protocol with methods that...

### Location https://docs.swift.org/swift-book/documentation/the-swift-programming-language/summaryofthegrammar/ ### Description SE-0409 has been implemented for Swift 6.0, but the necessary changes to the grammar are not yet included. https://github.com/swiftlang/swift-evolution/blob/main/proposals/0409-access-level-on-imports.md#declaring-the-access-level-of-an-imported-module ### Correction _No response_

### Location In Chapter: https://github.com/swiftlang/swift-book/blob/main/TSPL.docc/LanguageGuide/Closures.md Considering after section: https://github.com/swiftlang/swift-book/blob/main/TSPL.docc/LanguageGuide/Closures.md#trailing-closures ### Description While the Swift Book does an excellent job introducing closure expressions, trailing closures, and functional patterns like sorting and...

Enhancement

### Location https://docs.swift.org/swift-book/documentation/the-swift-programming-language/memorysafety ### Description Strict memory safety was added in 6.2: https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety/ - The memory safety section could mention the `-strict-memory-safety` flag as an additional tool for achieving and...

Enhancement

### Location https://docs.swift.org/swift-book/documentation/the-swift-programming-language/summaryofthegrammar#Types ### Description Tested with Swift 6.2 I noticed that the grammar of protocol composition types does not match the implementation (i.e. the compiler). In particular, a protocol...

### Location https://docs.swift.org/swift-book/documentation/the-swift-programming-language/summaryofthegrammar/ ### Description Swift 6.2 implemented https://github.com/swiftlang/swift-evolution/blob/main/proposals/0483-inline-array-sugar.md, but the grammar is not yet covered by the official grammar. Additionally, the proposal is missing the needed changes to the...

### Location https://docs.swift.org/swift-book/documentation/the-swift-programming-language/summaryofthegrammar/ ### Description As far as I can tell, this proposal has been implemented for Swift 6.2, but the changes are not yet contained in the grammar: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0452-integer-generic-parameters.md...

### Location https://docs.swift.org/swift-book/documentation/the-swift-programming-language/summaryofthegrammar#Declarations ### Description Swift supports this syntax (tested with 6.2): ```swift protocol P1 { } protocol P2 { } struct Composed: P1 & P2 { } ``` The...

Content issue