Configure player

Close

WWDC Index does not host video files

If you have access to video files, you can configure a URL pattern to be used in a video player.

URL pattern

preview

Use any of these variables in your URL pattern, the pattern is stored in your browsers' local storage.

$id
ID of session: wwdc2021-10253
$eventId
ID of event: wwdc2021
$eventContentId
ID of session without event part: 10253
$eventShortId
Shortened ID of event: wwdc21
$year
Year of session: 2021
$extension
Extension of original filename: mp4
$filenameAlmostEvery
Filename from "(Almost) Every..." gist: [2021] [Session 10253] Write a D...

WWDC21 • Session 10253

Write a DSL in Swift using result builders

Swift • iOS, macOS, tvOS, watchOS • 46:55

Some problems are easier to solve by creating a customized programming language, or “domain-specific language.” While creating a DSL traditionally requires writing your own compiler, you can instead use result builders with Swift 5.4 to make your code both easier to read and maintain. We’ll take you through best practices for designing a custom language for Swift: Learn about result builders and trailing closure arguments, explore modifier-style methods and why they work well, and discover how you can extend Swift’s normal language rules to turn Swift into a DSL. To get the most out of this session, it’s helpful (though not necessary) to have some experience writing SwiftUI views. You won’t need to know anything about parser or compiler implementation.

Speaker: Becca Royal-Gordon

Open in Apple Developer site