You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ We extend our heartfelt thanks to all our contributors. You can find the [list o
65
65
66
66
## 当前状态
67
67
68
-
- The Swift Programming Language 的最新英文版本。[最新提交: 11a2b29][11a2b29]
68
+
- The Swift Programming Language 的最新英文版本。[最新提交: fe0121d][https://github.com/swiftlang/swift-book/commit/fe0121d1f2d86d6139c2b424d45a7889b82ff5e2]
69
69
- 对应的简体中文翻译 (进行中和已归档):
70
70
- Swift 6 beta (当前正在翻译)
71
71
- Swift 5.x 及更早版本 (可在 [GitBook][legacy-documentations] 上阅读)
let task =await Task.withTaskCancellationHandler {
@@ -1431,12 +1431,6 @@ preventing the type from being sendable.
1431
1431
but maybe link to them?
1432
1432
-->
1433
1433
1434
-
> Beta Software:
1435
-
>
1436
-
> This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
1437
-
>
1438
-
> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/).
1439
-
1440
1434
<!--
1441
1435
This source file is part of the Swift.org open source project
> This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
748
-
>
749
-
> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/).
750
-
751
750
<!--
752
751
This source file is part of the Swift.org open source project
Copy file name to clipboardExpand all lines: TSPL.docc/ReferenceManual/Attributes.md
+2-8Lines changed: 2 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ If there's a stable URL we can use, make the macro protocols below links.
46
46
-->
47
47
48
48
The first argument to this attribute
49
-
indicates the macros role:
49
+
indicates the macro's role:
50
50
51
51
- term Peer macros:
52
52
Write `peer` as the first argument to this attribute.
@@ -1593,7 +1593,7 @@ s.$x.wrapper // WrapperWithProjection value
1593
1593
1594
1594
### resultBuilder
1595
1595
1596
-
Apply this attribute to a class, structure, enumeration
1596
+
Apply this attribute to a class, structure, or enumeration
1597
1597
to use that type as a result builder.
1598
1598
A *result builder* is a type
1599
1599
that builds a nested data structure step by step.
@@ -2625,12 +2625,6 @@ see <doc:Statements#Switching-Over-Future-Enumeration-Cases>.
2625
2625
> *balanced-token* → Any identifier, keyword, literal, or operator \
2626
2626
> *balanced-token* → Any punctuation except **`(`**, **`)`**, **`[`**, **`]`**, **`{`**, or **`}`**
2627
2627
2628
-
> Beta Software:
2629
-
>
2630
-
> This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
2631
-
>
2632
-
> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/).
2633
-
2634
2628
<!--
2635
2629
This source file is part of the Swift.org open source project
Copy file name to clipboardExpand all lines: TSPL.docc/ReferenceManual/Declarations.md
+1-7Lines changed: 1 addition & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ the term *declaration* covers both declarations and definitions.
33
33
> *declaration* → *subscript-declaration*\
34
34
> *declaration* → *macro-declaration*\
35
35
> *declaration* → *operator-declaration*\
36
-
> *declaration* → *precedence-group-declaration*\
36
+
> *declaration* → *precedence-group-declaration*
37
37
38
38
## Top-Level Code
39
39
@@ -3983,12 +3983,6 @@ as discussed in <doc:AccessControl#Getters-and-Setters>.
3983
3983
>
3984
3984
> *actor-isolation-modifier* → **`nonisolated`**
3985
3985
3986
-
> Beta Software:
3987
-
>
3988
-
> This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
3989
-
>
3990
-
> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/).
3991
-
3992
3986
<!--
3993
3987
This source file is part of the Swift.org open source project
> This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
3257
-
>
3258
-
> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/).
3259
-
3260
3279
<!--
3261
3280
This source file is part of the Swift.orgopen source project
Copy file name to clipboardExpand all lines: TSPL.docc/ReferenceManual/LexicalStructure.md
+3-8Lines changed: 3 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -263,8 +263,8 @@ so they must be escaped with backticks in that context.
263
263
`nonisolated`,
264
264
`open`,
265
265
`operator`,
266
-
`private`,
267
266
`precedencegroup`,
267
+
`private`,
268
268
`protocol`,
269
269
`public`,
270
270
`rethrows`,
@@ -294,8 +294,8 @@ so they must be escaped with backticks in that context.
294
294
`in`,
295
295
`repeat`,
296
296
`return`,
297
-
`throw`,
298
297
`switch`,
298
+
`throw`,
299
299
`where`,
300
300
and `while`.
301
301
- Keywords used in expressions and types:
@@ -373,6 +373,7 @@ so they must be escaped with backticks in that context.
373
373
374
374
- Keywords reserved in particular contexts:
375
375
`associativity`,
376
+
`async`,
376
377
`convenience`,
377
378
`didSet`,
378
379
`dynamic`,
@@ -1251,12 +1252,6 @@ see <doc:AdvancedOperators#Operator-Methods>.
1251
1252
> *prefix-operator* → *operator*\
1252
1253
> *postfix-operator* → *operator*
1253
1254
1254
-
> Beta Software:
1255
-
>
1256
-
> This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
1257
-
>
1258
-
> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/).
1259
-
1260
1255
<!--
1261
1256
This source file is part of the Swift.org open source project
> This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
1102
-
>
1103
-
> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/).
1104
-
1105
1099
<!--
1106
1100
This source file is part of the Swift.org open source project
Copy file name to clipboardExpand all lines: TSPL.docc/ReferenceManual/Types.md
+1-7Lines changed: 1 addition & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -937,7 +937,7 @@ of any type that satisfies the *constraint*.
937
937
This behavior contrasts with how an opaque types work,
938
938
where there is some specific conforming type known at compile time.
939
939
The additional level of indirection that's used
940
-
when working with a boxed protocol type is called :newTerm:`boxing`.
940
+
when working with a boxed protocol type is called *boxing*.
941
941
Boxing typically requires a separate memory allocation for storage
942
942
and an additional level of indirection for access,
943
943
which incurs a performance cost at runtime.
@@ -1359,12 +1359,6 @@ the expression or one of its subexpressions.
1359
1359
is allowed and when types must be fully typed.
1360
1360
-->
1361
1361
1362
-
> Beta Software:
1363
-
>
1364
-
> This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
1365
-
>
1366
-
> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/).
1367
-
1368
1362
<!--
1369
1363
This source file is part of the Swift.org open source project
Copy file name to clipboardExpand all lines: TSPL.docc/RevisionHistory/RevisionHistory.md
+3-11Lines changed: 3 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,17 +2,15 @@
2
2
3
3
Review the recent changes to this book.
4
4
5
-
**XXX release date XXX**
6
-
7
-
- Minor corrections throughout.
8
-
9
-
**2024-06-10**
5
+
**2024-09-23**
10
6
11
7
- Updated for Swift 6.
12
8
- Added the <doc:Attributes#preconcurrency> section
13
9
with information about migrating to strict concurrency checking.
14
10
- Added the <doc:ErrorHandling#Specifying-the-Error-Type> section
15
11
with information about throwing errors of a specific type.
12
+
- Updated the <doc:Expressions#Macro-Expansion-Expression> section,
13
+
now that any macro can be used as a default value for a parameter.
16
14
- Added information about package-level access
17
15
to the <doc:AccessControl> chapter.
18
16
@@ -852,12 +850,6 @@ Review the recent changes to this book.
852
850
for the <doc:BasicOperators#Half-Open-Range-Operator>.
853
851
- Added an example of <doc:Generics#Extending-a-Generic-Type>.
854
852
855
-
> Beta Software:
856
-
>
857
-
> This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
858
-
>
859
-
> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/).
860
-
861
853
<!--
862
854
This source file is part of the Swift.org open source project
0 commit comments