Skip to content

Commit 9f61777

Browse files
Update CHANGELOG.md (swiftlang#68619)
* Add the Swift 5.9 release date. * Fix indentation of example code.
1 parent 67a4b9c commit 9f61777

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@
99

1010
Member macros can specify a list of protocols via the `conformances` argument to the macro role. The macro implementation will be provided with those protocols that are listed but have not already been implemented by the type to which the member macro is attached, in the same manner as extension macros.
1111

12-
```swift
13-
@attached(member, conformances: Decodable, Encodable, names: named(init(from:), encode(to:)))
14-
@attached(extension, conformances: Decodable, Encodable, names: named(init(from:), encode(to:)))
15-
macro Codable() = #externalMacro(module: "MyMacros", type: "CodableMacro")
16-
```
12+
```swift
13+
@attached(member, conformances: Decodable, Encodable, names: named(init(from:), encode(to:)))
14+
@attached(extension, conformances: Decodable, Encodable, names: named(init(from:), encode(to:)))
15+
macro Codable() = #externalMacro(module: "MyMacros", type: "CodableMacro")
16+
```
1717

1818
## Swift 5.9
1919

20+
### 2023-09-18 (Xcode 15.0)
21+
2022
* [SE-0382][], [SE-0389][], [SE-0394][], [SE-0397][]:
2123

2224
Swift 5.9 includes a new macro system that can be used to eliminate boilerplate and provide new forms of expressive APIs. Macros are declared with the new `macro` introducer:

0 commit comments

Comments
 (0)