Hello!
Could somebody, please, tell, where are noncopyable types described in swift docs?
TSPL hasn’t been updated to document noncopyable types yet, but the proposals give a pretty good summary of the feature:
- swift-evolution/proposals/0390-noncopyable-structs-and-enums.md at main · swiftlang/swift-evolution · GitHub
- swift-evolution/proposals/0427-noncopyable-generics.md at main · swiftlang/swift-evolution · GitHub
The first introduces noncopyable structs and enums while the second allows generics to abstract over noncopyable structs and enums.
1 Like
thank you!
Oh and of course there's a WWDC talk if you haven't seen it yet: Consume noncopyable types in Swift - WWDC24 - Videos - Apple Developer
1 Like
This post from @Ben_Cohen might also help.
1 Like