[swift-evolution] [Proposal] Partial initializers

Brent Royal-Gordon brent at architechies.com
Tue Jan 19 23:05:14 CST 2016

> The only difference is that partial init can set `let` members, correct?

The other difference (unless I'm wrong) is that an init function can be called again after initialization is complete. In other words, an `init func` is an actual method that can also be called during initialization; an `init <name>` is a sort of pseudo-method that can *only* be called during initialization.

Brent Royal-Gordon

More information about the swift-evolution mailing list