[swift-evolution] [Review] SE-0018 Flexible Memberwise Initialization

Matthew Johnson matthew at anandabits.com
Sun Jan 10 08:00:06 CST 2016



Sent from my iPad

On Jan 10, 2016, at 3:37 AM, Brent Royal-Gordon via swift-evolution <swift-evolution at swift.org> wrote:

>> On Jan 10, 2016, at 1:17 AM, Thorsten Seitz <tseitz42 at icloud.com> wrote:
>> Yeah. Still brainstorming here :-)
> 
> So you know, I didn't really mean to put you specifically on the spot here; you're obviously trying to find concrete solutions to these problems. But it seems to me that what we're going to end up with is that, instead of having this:
> 
>    public init(members...: Members) {
>        self.members = members
>    }
> 
> We'll have something more like:
> 
>    public init(members...: Members.Public.Initializable) {
>        self.members.public.initializable = members
>    }
> 
> Which looks a whole lot worse than the original when you compare it to this proposal's:
> 
>    public memberwise init(...) {}

I think I have a solution to this which will be a good long-term direction with a clean migration path from the current proposal.  I'll be posting details later today or tomorrow morning.  I think you'll like it.

Matthew

> 
> -- 
> Brent Royal-Gordon
> Architechies
> 
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution


More information about the swift-evolution mailing list