apple / pkl-swift

Pkl bindings for the Swift programming language

Home Page:https://pkl-lang.org/swift/current/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sendable compliance for code generated types

abidon opened this issue · comments

Making code generated types Sendable (when possible) would be nice in anticipation of Swift 6.

There's also those warnings about registeredIdentifier not being concurrency-safe. Is there any particular reason why this property is not a let constant ?

public struct Module: PklRegisteredType, Decodable, Hashable {
-    public static var registeredIdentifier: String = "Foo"
+    public static let registeredIdentifier: String = "Foo"

    // ...
}