<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>The key differences are:</div><div><br></div><div>1) You are already the file implementing on that area of code if you are in the same file.&nbsp;</div><div>2) The file shouldn't be that big whereas the module is likely to have hundreds of files and several people on it.</div><div>3) There are performance benefits to be had with private (at least when Whole Module Optimisation is off).</div><div><br></div><div>I'm not too worried if it does get included it just seems the gains will be quite small. Can you point me to some code that would really benefit or where the lack of it has caused mistakes or problems in the past?</div><div><br></div><div>Joseph</div><div><br>On Feb 27, 2016, at 1:24 AM, Ilya Belenkiy &lt;<a href="mailto:ilya.belenkiy@gmail.com">ilya.belenkiy@gmail.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div>By the same logic, the comment alone is enough,  the private keyword isn't necessary. The benefit of scoped is that the intent would be enforceable by the compiler.  <br><div class="gmail_quote"><div dir="ltr">On Fri, Feb 26, 2016 at 6:48 PM Joseph Lord via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div></div><div>On Feb 26, 2016, at 7:05 PM, Douglas Gregor via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt; wrote:</div><div><br></div><blockquote type="cite"><p style="margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';font-size:16px;background-color:rgb(255,255,255)">The review of SE-0025 “Scoped Access Level" begins now and runs through March 3, 2016. The proposal is available here:</p><blockquote style="margin:0px 0px 16px;padding:0px 15px;border-left-width:4px;border-left-style:solid;border-left-color:rgb(221,221,221);background-color:rgb(255,255,255)"><div style="margin-top:0px;margin-bottom:0px"><font color="#777777" face="Helvetica Neue, Helvetica, Segoe UI, Arial, freesans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol" size="3"><a href="https://github.com/apple/swift-evolution/blob/master/proposals/0025-scoped-access-level.md" target="_blank">https://github.com/apple/swift-evolution/blob/master/proposals/0025-scoped-access-level.md</a></font></div></blockquote></blockquote><div><br></div></div><div dir="auto">-0.1<br><div>There is nothing wrong with this proposal but I just don't see the value over private (plus a little doc comment if absolutely necessary).</div><div><br></div><div>Downside is more language to learn / encounter and complexity to maintain.&nbsp;</div><div><br></div><div>I've read the proposal but not the preceding discussion.</div></div><div dir="auto"><div><br></div><div>Joseph</div></div>_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
</blockquote></div>
</div></blockquote></body></html>