[swift-evolution] [Pitch] Memberwise initialisers adopt the same access modifiers as the struct

Matthew Johnson matthew at anandabits.com
Thu Jul 21 11:07:40 CDT 2016


> On Jul 20, 2016, at 8:15 PM, Ian Keen via swift-evolution <swift-evolution at swift.org> wrote:
> 
> Not much to this one… I think the memberwise `init` should follow the same level of access as the struct. It appears to default to `internal` regardless of the struct access modifiers 
> 
> Thoughts?

There was an extensive discussion and review of a proposal I put forward early this year for improving memberwise initialization.  This topic has been deferred until after Swift 3 wraps up.  We’ll be revisiting it in the coming months.

> 
> _______________________________________________
> 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