WWDC23: Expand on Swift macros | Apple

Поділитися
Вставка
  • Опубліковано 5 лип 2024
  • Discover how Swift macros can help you reduce boilerplate in your codebase and adopt complex features more easily. Learn how macros can analyze code, emit rich compiler errors to guide developers towards correct usage, and generate new code that is automatically incorporated back into your project. We’ll also take you through important concepts like macro roles, compiler plugins, and syntax trees.
    00:00 - Introduction
    00:51 - Why macros?
    02:13 - Design philosophy
    04:48 - Translation model
    06:18 - Macro roles
    17:48 - Macro implementation
    33:36 - Writing correct macros
    38:42 - Wrap up
    More Apple Developer resources:
    Video sessions: apple.co/VideoSessions
    Documentation: apple.co/DeveloperDocs
    Forums: apple.co/DeveloperForums
    App: apple.co/DeveloperApp
  • Наука та технологія

КОМЕНТАРІ •