<div dir="ltr">What about private, fileonly, moduleonly, public ? </div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">
<p><b><font color="#cc0000">___________________________________</font></b></p><p><b>James⎥Future Prime Minister</b></p><p><b><font color="#cc0000"><a href="mailto:james@supmenow.com" target="_blank">james@supmenow.com</a>⎥<a href="http://supmenow.com" target="_blank">supmenow.com</a></font></b></p><p><b><font size="2">Sup</font></b></p><p><b><font size="2">Runway East
</font></b></p><p><b><font size="2">10 Finsbury Square</font></b></p><p><b><font size="2">London</font></b></p><p><b><font size="2">
EC2A 1AF </font></b></p></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Thu, Mar 31, 2016 at 1:24 PM, Pierre Monod-Broca via swift-evolution <span dir="ltr"><<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>I like :</div><div><br></div><div>- public</div><div>- modulewide or moduleprivate or internal</div><div>- filewide or fileprivate</div><div>- private</div><div><br></div><div>I really dislike interfile because the word exists and means something else</div><div>I dislike intermodule, inmodule and infile because I don't find them intuitive at all.</div><div><br></div><div>I prefer the -wide flavors because they're shorter than the -private flavors, and because -wide is an existing suffix in english.</div><div>Internal has the advantage of no modification but if we want to change it, now is the time.</div><div><div class="h5"><div><br></div><div><br><div><blockquote type="cite"><div>Le 31 mars 2016 à 11:10, Ross O'Brien via swift-evolution <<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>> a écrit :</div><br><div><div dir="ltr"><div><span style="font-size:13px">> public</span><br style="font-size:13px"><span style="font-size:13px">> internal</span><br style="font-size:13px"><span style="font-size:13px">> interfile</span><br style="font-size:13px"><span style="font-size:13px">> private</span><br style="font-size:13px"></div><div><br></div>Linguistically, I really like this direction. 'interfile' is one word, it reads as an adjective, it can be used in conversation (this has interfile visibility), and it's clear about where its visibility ends.<div><br></div><div>It just doesn't mean what you think it means.</div><div><br></div><div>'inter' means 'between'. See: 'intergalactic', 'interstellar', 'international', 'internet'. So 'interfile' would have to mean 'visible between files' - i.e. an interfile symbol in one file is visible in another file. The prefix you're looking for, meaning 'internal', is 'intra' (see: 'intravenous', 'intranet').</div><div><br></div><div>So the scale would become:</div><div><br></div><div>public / intermodule</div><div>internal / intramodule / interfile</div><div>intrafile</div><div>private</div><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 31, 2016 at 6:04 AM, Paul Ossenbruggen via swift-evolution <span dir="ltr"><<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">public<br>
internal<br>
interfile<br>
private<br>
<br>
still googleable and very clear its scope and meaning, nice latin root. Doesn’t overload “private”, slightly shorter.<br>
<div><div><br>
<br>
> On Mar 30, 2016, at 9:46 PM, Thorsten Seitz via swift-evolution <<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>> wrote:<br>
><br>
> Looks good to me.<br>
><br>
> -Thorsten<br>
><br>
>> Am 31.03.2016 um 06:22 schrieb Chris Lattner via swift-evolution <<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>>:<br>
>><br>
>>> On Mar 23, 2016, at 10:13 PM, Chris Lattner <<a href="mailto:clattner@apple.com" target="_blank">clattner@apple.com</a>> wrote:<br>
>>> How about we continue this trend, and follow other existing Swift keywords that merge two lowercase words (associatedtype, typealias, etc), and use:<br>
>>><br>
>>> public<br>
>>> moduleprivate<br>
>>> fileprivate<br>
>>> private<br>
>>><br>
>>> The advantages, as I see them are:<br>
>>> 1) We keep public and private meaning the “right” and “obvious” things.<br>
>>> 2) The declmodifiers “read” correctly.<br>
>>> 3) The unusual ones (moduleprivate and fileprivate) don’t use the awkward parenthesized keyword approach.<br>
>>> 4) The unusual ones would be “googable”.<br>
>>> 5) Support for named submodules could be “dropped in” by putting the submodule name/path in parens: private(foo.bar.baz) or moduleprivate(foo.bar). Putting an identifier in the parens is much more natural than putting keywords in parens.<br>
>><br>
>> I’ve seen a number of concerns on this list about moduleprivate, and how it penalizes folks who want to explicitly write their access control. I’ve come to think that there is yes-another possible path forward here (which I haven’t seen mentioned so far):<br>
>><br>
>> public<br>
>> internal<br>
>> fileprivate<br>
>> private<br>
>><br>
>> The advantages, as I see them are:<br>
>> 1) We keep public and private meaning the “right” and “obvious” things.<br>
>> 2) The declmodifiers “read” correctly.<br>
>> 3) Compared to Swift 2, there is almost no change. The only thing that changes is that some uses of Swift 2 “private” will be migrated to “fileprivate”, which makes the intent of the code much more clear.<br>
>> 4) fileprivate is the unusual and not-really-precedented-in-other-languages modifier, and it would still be “googable”.<br>
>> 5) The addresses the “excessively long” declmodifier problem that several people are concerned with.<br>
>> 6) Support for named submodules could be “dropped in” by parameterizing “internal”.<br>
>><br>
>> Thoughts?<br>
>><br>
>> -Chris<br>
>> _______________________________________________<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>
> _______________________________________________<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>
<br>
_______________________________________________<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>
</div></div></blockquote></div><br></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" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br></div></blockquote></div><br></div></div></div></div><br>_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org">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>
<br></blockquote></div><br></div>