<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>I don’t see why “parts” would need to be named. That seems overly complex for little benefit.&nbsp;</div><div><br>On Nov 1, 2017, at 7:43 AM, Mike Kluev via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">On 1 November 2017 at 13:34, Wallacy <span dir="ltr">&lt;<a href="mailto:wallacyf@gmail.com" target="_blank">wallacyf@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Partial (like in C#) is good enough.</div></blockquote><div><br></div><div>"partial" will not read correctly in this context:</div><div><br></div><div style="font-size:12.800000190734863px">class ViewController: UIViewController {<br></div><div style="font-size:12.800000190734863px">&nbsp; &nbsp; partial DataSource // ?!</div><div style="font-size:12.800000190734863px">&nbsp; &nbsp; ...</div><div style="font-size:12.800000190734863px">}<br></div><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px">partial DataSource of ViewController: UITableViewDataSource { // ?!</div><div>}&nbsp;</div><div><br></div><div>if you mean:</div><div><br></div><div>partial class ViewController:&nbsp;<span style="font-size:12.800000190734863px">UITableViewDataSource</span>&nbsp;{</div><div>&nbsp; &nbsp; ...</div><div>}</div><div><br></div><div>this is not what i'm suggesting. parts/continuations must have a name and this name must be listed in a ledger (of the main class or another part of it) for the part to be able to exist at all.</div><div><br></div><div>having the "main" part (just the normal class definition) is good for:</div><div><br></div><div>- it is the only place to put base class in (like the above UIViewController)</div><div><br></div><div>- it has the starting ledger that list parts (direct sub-parts). all parts can be found "recursively" from that starting point.</div><div><br></div><div>with "parts" many pieces that are extensions today will become parts. and "private" to "fileprivate" promotion feature will likely not be needed anymore (we can of course leave it as is for compatibility).</div><div><br></div><div>Mike</div><div><br></div></div></div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>swift-evolution mailing list</span><br><span><a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a></span><br><span><a href="https://lists.swift.org/mailman/listinfo/swift-evolution">https://lists.swift.org/mailman/listinfo/swift-evolution</a></span><br></div></blockquote></body></html>