Macros are a power feature in a number of programming languages that make the language more extensible. Swift has always sought to enable expressive libraries through its use of type inference, generics, and general approach toward clarity of use. Macros in Swift are intended to improve expressiveness without sacrificing clarity.
This gist provides a "dashboard" with links to the various documents and example projects that are part of the Swift Macros effort. Head on over to the Swift Forums if you have questions!
Overview and examples:
- Macros vision document: lays out the overall motivation, goals, and approach we're taking in the implementation of macros in Swift.
- Example macros repository: contains a number of example macros that demonstrate the capabilities of the macro system and how it integrates into the language. This