Hacker News new | ask | show | jobs
by bobbylarrybobby 1575 days ago
Yeah, no macros in Swift is a bit of an odd choice. It means that every would-be macro has to go through the language evolution process and be blessed by the Swift team. You can't release macro-like functionality, such as Rust's serde, without support from Apple.
2 comments

It’s certainly something that they want. I suspect it’ll be added someday in a major release.
Write your own preprocessor?