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

Joe Groff jgroff at apple.com
Thu Jan 7 12:37:51 CST 2016


> On Jan 7, 2016, at 10:32 AM, David Owens II <david at owensd.io> wrote:
> 
> And this is more clear than this?
> 
> class Foo {
>   var x,y,z: Int
>   init(x: Int, y: Int, z: Int) {
>     self.x = x
>     self.y = y
>     self.z = z
>   }
> }

No, it isn't, but Matthew asked… I'm personally not too motivated to support anything more than all-or-nothing memberwise initialization, and tend to agree that anything more specialized deserves an explicit implementation.

-Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160107/dfbbff79/attachment.html>


More information about the swift-evolution mailing list