News for hackers. Stuff that matters.
Re:Chris Lattner left Swift core team by bobbylarrybobby on Tuesday February 22, 2022 @12:42AM (#30424403)
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.
Re:Chris Lattner left Swift core team by saagarjha on Wednesday February 23, 2022 @05:03AM (#30439542)
It’s certainly something that they want. I suspect it’ll be added someday in a major release.
Re:Chris Lattner left Swift core team by cudgy on Tuesday February 22, 2022 @05:30AM (#30426167)
Write your own preprocessor?