[swift-evolution] [Proposal Draft] Flexible memberwise initialization

Matthew Johnson matthew at anandabits.com
Tue Dec 22 12:49:32 CST 2015

> On Dec 22, 2015, at 12:25 PM, David Owens II <david at owensd.io> wrote:
>> On Dec 22, 2015, at 10:15 AM, Chris Lattner <clattner at apple.com <mailto:clattner at apple.com>> wrote:
>> We would like to integrate this into the package manager as well, so it helps “enforce” proper semantic versioning.
> This would be awesome to have, especially integrated in. The way we handle this internally is less than ideal, so have a standard way would be great.
> -David

Yes, I was actually going to suggest proposing this as a general way to address this concern.  Glad to hear it’s already in the works!

As for the proposal, it offers you the ability to retain full control over initialization.  You can even use it in v1 and switch to a manual implementation of initializers in v2 if that is necessary to uphold the existing contract.  Use it when it provides value and avoid it when it doesn’t.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151222/2f4f39e4/attachment.html>

More information about the swift-evolution mailing list