Factory: Macro Misadventures
Factory: Macro MisadventuresWhy adding Swift Macros to Factory is a study in compromise.Michael Long ∙ May 30, 2025 ∙ 8 min read![]() ∙ View on Medium![]() One of the new features added to Xcode last year was Swift Macros, expressions or attributes one could add to code that expand at compile time, adding features and reducing boilerplate and enabling complex behaviors without the need for manual scaffolding. One of the better-known examples of this was Observable was a feature touted to save developers from writing mountains of mindless boilerplate while increasing performance across the board… albeit with a few small problems. This article discusses why I wanted to add macros to my dependency injection… Continue reading This is a member-only story and can only be read on Medium. Sent to sikubaycom.s3cr3tz@blogger.com by Michael Long on Medium Unsubscribe from this newsletter or unsubscribe from all newsletters from Medium Manage your email settings 3500 South DuPont Highway, Suite IQ-101, Dover, DE 19901 Careers·Help Center·Privacy Policy·Terms of service |