[swift-evolution] Proposal: Allow operators to have parameters with default values

Chris Lattner clattner at nondot.org
Fri Nov 3 22:59:19 CDT 2017


> On Nov 3, 2017, at 8:40 AM, Dave DeLong via swift-evolution <swift-evolution at swift.org> wrote:
> 
> That’s cool, but a hygienic macro system isn’t anywhere on the Swift roadmap.
> 
> Chris has mentioned in interviews that such a system is "a big feature that’s open-ended and requires a huge design process” which makes off-the-table for Swift 5, and (I’m guessing) unlikely for Swift 6 too.
> 
> Personally I’d like to be able to better debug my apps in Swift 4.1 rather than waiting another 2 or 3 years for a magical macro system to somehow solve this.

You’re assuming somehow that this is an “easy” feature.  I haven’t seen a concrete proposal, but I don’t see how adding hidden options to operators compose into the existing system.

-Chris



More information about the swift-evolution mailing list