[swift-evolution] [Proposal] Partial initializers

Chris Lattner clattner at apple.com
Thu Jan 21 23:48:12 CST 2016


> On Jan 21, 2016, at 9:20 PM, Slava Pestov <spestov at apple.com> wrote:
> 
>> 
>> I’m not sold on the notion of partial initializers in the first place, but if we were to go down this path, the approach of nailing down the exact initialization behavior and requirements of the partial initializer - and making it part of its explicitly declared interface - is the right way to go.
> 
> Fair enough. I’m also worried about the prospect of adding even more complexity — and syntax — to Swift’s initializer model. My hope is that we can map this to existing language features somehow, or combine this with some other simplification of the initializer model so that the net complexity gain is not too high. But since I don’t have any concrete suggestions at this point, I’ll stay quiet for a while ;-)

Macro system? :-)

-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160121/032dee08/attachment.html>


More information about the swift-evolution mailing list