<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">It was an exchange John McCall and I had on the 9th.</div><div class=""><br class=""></div><div class=""><a href="https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20151207/001296.html" class="">https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20151207/001296.html</a></div><div class=""><a href="https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20151207/001300.html" class="">https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20151207/001300.html</a></div><a href="https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20151207/001304.html" class="">https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20151207/001304.html</a><div class=""><a href="https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20151207/001305.html" class="">https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20151207/001305.html</a><br class=""><div class=""><br class=""></div><div class="">Matthew</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 14, 2015, at 11:49 AM, Ilya Belenkiy &lt;ilya.belenkiy@gmail.com&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="white-space:pre-wrap" class="">I missed it. I am not attached to it, but I wish I could see where it happened. Can you point me to the emails?<br class=""><br class="">--<br class="">Ilya Belenkiy</div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Mon, Dec 14, 2015 at 12:25 PM Matthew Johnson &lt;<a href="mailto:matthew@anandabits.com" class="">matthew@anandabits.com</a>&gt; wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto" class=""><div class="">The idea of calling this 'local' was abandoned a long time ago.&nbsp; Any proposal around this will be using 'scope' or 'scoped'.<br class=""><br class="">Sent from my iPad</div></div><div dir="auto" class=""><div class=""><br class="">On Dec 14, 2015, at 11:22 AM, Marc Knaup &lt;<a href="mailto:marc@knaup.koeln" target="_blank" class="">marc@knaup.koeln</a>&gt; wrote:<br class=""><br class=""></div><blockquote type="cite" class=""><div class=""><div dir="ltr" class="">What about "more private" or "really private"? :)<div class="">j/k</div><div class=""><br class=""></div><div class="">I also thought about "local" but it's also not obvious what exactly that means.</div><div class="">Maybe "my"? &nbsp;<font face="monospace, monospace" class="">my var xyz = …</font></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Mon, Dec 14, 2015 at 6:17 PM, David Owens II via swift-evolution <span dir="ltr" class="">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank" class="">swift-evolution@swift.org</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><span class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Dec 14, 2015, at 8:58 AM, Matthew Johnson &lt;<a href="mailto:matthew@anandabits.com" target="_blank" class="">matthew@anandabits.com</a>&gt; wrote:</div><br class=""><div class=""><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important" class="">I agree that you can concoct arbitrarily complex scenarios and a line must be drawn somewhere.&nbsp; IMO the best place to draw the line is when you start considering something that is not super straightforward to explain and is not a natural extension of the obviously necessary access modifiers. &nbsp;</span><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><br class=""></div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">IMO ‘scope’ passes this test and all of the complex counter-examples do not.&nbsp; It is the logical conclusion of a simple narrowing of visibility from “everyone” to “module” to “file” to “scope”.&nbsp; It is simple to explain and understand.&nbsp; Those who don’t like it don’t need to use it.&nbsp; Anything more complex is unlikely to pass such a test.</div></div></blockquote></div><br class=""></span><div class="">I think the simplest counter-example is your own example for extensions. Each extensions will need access to different internals of the the type it’s applied to. So when it comes time to add that extension, you’ll be forced to promote the access control from “local” to “private”.</div><div class=""><br class=""></div><div class="">Another straight-forward one is a subclass. Since “local” would be “scope” based, a subclass would also knot have access to those members defined as local in the super class, so they’d have to be promoted to private and thus available to all code within the file.</div><div class=""><br class=""></div><div class="">I think “local” fits this definition:</div><span class=""><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><span style="display:inline!important" class="">IMO the best place to draw the line is when you start considering something that is not super straightforward to explain and is not a natural extension of the obviously necessary access modifiers. &nbsp;</span></blockquote><br class=""></div></span><div class="">It’s not an obviously necessary modifier as it’s usage is extremely limited and requires to be bounced up a level is a lot of design considerations, such as extensions and subclasses. There are certainly times where “local” could be used, but my opinion is that it’s not worth complexity for the limited value that it actually brings to the table.</div><div class=""><br class=""></div><div class="">-David</div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=6ZGE61OxINd5lLe2xYh9Ku-2BXbixWNr2nvfzp2IB1sZht4pc1At4u3IHQXoccEVF7-2FzfUcQ0sW0kGSErzhXCA-2F1QKa-2BZU02osL9VABaKIde9el6VqI2GyJ0pz3t-2BNvEiXuzq6bwS3sBEZrSUG80qyj-2F59-2FBrJOJ3-2F55-2BCQE38pI4UhH-2FfBL4Gkb-2BUkS1Y7iLz9WVHD1OkGZ54ih-2Btu0CxbkgmXhCdr5uO-2F4BvhRTgbQQ-3D" alt="" width="1" height="1" border="0" style="min-height:1px!important;width:1px!important;border-width:0!important;margin-top:0!important;margin-bottom:0!important;margin-right:0!important;margin-left:0!important;padding-top:0!important;padding-bottom:0!important;padding-right:0!important;padding-left:0!important" class="">
</div>
<br class="">_______________________________________________<br class="">
swift-evolution mailing list<br class="">
<a href="mailto:swift-evolution@swift.org" target="_blank" class="">swift-evolution@swift.org</a><br class="">
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank" class="">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br class="">
<br class=""></blockquote></div><br class=""></div>
</div></blockquote></div></blockquote></div>
</div></blockquote></div><br class=""></div></div></body></html>