MENU

Fun & Interesting

WWDC24: Consume noncopyable types in Swift | Apple

Apple Developer 5,305 lượt xem 10 months ago
Video Not Working? Fix It Now

Get started with noncopyable types in Swift. Discover what copying means in Swift, when you might want to use a noncopyable type, and how value ownership lets you state your intentions clearly.

Discuss this video on the Apple Developer Forums:
https://developer.apple.com/forums/topics/programming-languages-topic?cid=yt-a-0010

Explore related documentation, sample code, and more:
Copyable: https://developer.apple.com/documentation/Swift/Copyable
Swift Evolution: Noncopyable Standard Library Primitives: https://github.com/apple/swift-evolution/blob/main/proposals/0437-noncopyable-stdlib-primitives.md
Swift Evolution: Borrowing and consuming pattern matching for noncopyable types: https://github.com/apple/swift-evolution/blob/main/proposals/0432-noncopyable-switch.md
Swift Evolution: Noncopyable Generics: https://github.com/apple/swift-evolution/blob/main/proposals/0427-noncopyable-generics.md
Modern Swift API Design: https://developer.apple.com/videos/play/wwdc2019/415

00:00 - Introduction
00:30 - Agenda
00:50 - Copying
07:05 - Noncopyable Types
11:50 - Generics
19:12 - Extensions
21:24 - Wrap up

More Apple Developer resources:
Video sessions: https://apple.co/VideoSessions
Documentation: https://apple.co/DeveloperDocs
Forums: https://apple.co/DeveloperForums
App: https://apple.co/DeveloperApp

Comment