[swift-evolution] Proposal: helpers for initializing properties of same name as parameters

Daniel Steinberg daniel at dimsumthinking.com
Sun Dec 6 10:01:53 CST 2015

Yes! It feels silly to have to re-implement the default initializer just to make it public. I would love to see this.

> On Dec 6, 2015, at 1:34 AM, Chris Lattner via swift-evolution <swift-evolution at swift.org> wrote:
> So you could say:
>  public memberwise init()
> to specifically say you want the default one given public access control (for example).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151206/678e1b5b/attachment.html>

More information about the swift-evolution mailing list