<html><body><div>+1<br></div><div>Now we only need to add submodule and protected ;-)<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>-Thorsten<br data-mce-bogus="1"></div><div><br>Am 15. März 2016 um 14:58 schrieb Zach Waldowski via swift-evolution <swift-evolution@swift.org>:<br><br><div><blockquote type="cite"><div class="msg-quote"><div class="_stretch"><span class="body-text-content">I'm in favor of this too. Parameterizing the private syntax is nice, but<br>it introduces complications elsewhere. We should come up with a new<br>word, `module` seems good to me.<br><br>Sincerely,<br> Zachary Waldowski<br> <a href="mailto:zach@waldowski.me" data-mce-href="mailto:zach@waldowski.me">zach@waldowski.me</a><br><br>On Mon, Mar 14, 2016, at 10:38 PM, Sean Heber via swift-evolution wrote:<br><blockquote type="cite" class="quoted-plain-text">I, too, prefer it to be more like this:</blockquote><blockquote type="cite" class="quoted-plain-text"><br></blockquote><blockquote type="cite" class="quoted-plain-text">public // unchanged</blockquote><blockquote type="cite" class="quoted-plain-text">module // currently internal</blockquote><blockquote type="cite" class="quoted-plain-text">internal // currently private</blockquote><blockquote type="cite" class="quoted-plain-text">private // new hotness</blockquote><blockquote type="cite" class="quoted-plain-text"><br></blockquote><blockquote type="cite" class="quoted-plain-text">l8r</blockquote><blockquote type="cite" class="quoted-plain-text">Sean</blockquote><blockquote type="cite" class="quoted-plain-text"><br></blockquote><blockquote type="cite" class="quoted-plain-text"><br></blockquote><blockquote type="cite" class="quoted-plain-text">> On Mar 14, 2016, at 7:50 PM, Jo Albright via swift-evolution <swift-evolution@swift.org> wrote:</blockquote><blockquote type="cite" class="quoted-plain-text">></blockquote><blockquote type="cite" class="quoted-plain-text">> +1</blockquote><blockquote type="cite" class="quoted-plain-text">></blockquote><blockquote type="cite" class="quoted-plain-text">> I like this a lot. Name ideas : enclosed, filelocal, fileonly, filelock, fileaccess, fileprivate, insidefile, inner. I also like Erica’s filebound & file fixed.</blockquote><blockquote type="cite" class="quoted-plain-text">></blockquote><blockquote type="cite" class="quoted-plain-text">> By Erica’s suggestion about switching…</blockquote><blockquote type="cite" class="quoted-plain-text">></blockquote><blockquote type="cite" class="quoted-plain-text">> - public</blockquote><blockquote type="cite" class="quoted-plain-text">> - modular, modulelock, packaged (module only)</blockquote><blockquote type="cite" class="quoted-plain-text">> - internal (file only)</blockquote><blockquote type="cite" class="quoted-plain-text">> - private</blockquote><blockquote type="cite" class="quoted-plain-text">></blockquote><blockquote type="cite" class="quoted-plain-text">> Designer . Developer . Nerd</blockquote><blockquote type="cite" class="quoted-plain-text">> Jo Albright</blockquote><blockquote type="cite" class="quoted-plain-text">></blockquote><blockquote type="cite" class="quoted-plain-text">></blockquote><blockquote type="cite" class="quoted-plain-text">>> On Mar 14, 2016, at 8:18 PM, Chris Lattner via swift-evolution <swift-evolution@swift.org> wrote:</blockquote><blockquote type="cite" class="quoted-plain-text">>></blockquote><blockquote type="cite" class="quoted-plain-text">>> Per Doug’s email, the core team agrees we should make a change here, but would like some bikeshedding to happen on the replacement name for private.</blockquote><blockquote type="cite" class="quoted-plain-text">>></blockquote><blockquote type="cite" class="quoted-plain-text">>> To summarize the place we’d like to end up:</blockquote><blockquote type="cite" class="quoted-plain-text">>></blockquote><blockquote type="cite" class="quoted-plain-text">>> - “public” -> symbol visible outside the current module.</blockquote><blockquote type="cite" class="quoted-plain-text">>> - “internal” -> symbol visible within the current module.</blockquote><blockquote type="cite" class="quoted-plain-text">>> - unknown -> symbol visible within the current file.</blockquote><blockquote type="cite" class="quoted-plain-text">>> - “private” -> symbol visible within the current declaration (class, extension, etc).</blockquote><blockquote type="cite" class="quoted-plain-text">>></blockquote><blockquote type="cite" class="quoted-plain-text">>> The rationale here is that this aligns Swift with common art seen in other languages, and that many people using private today don’t *want* visibility out of their current declaration. It also encourages “extension oriented programming”, at least it will when some of the other restrictions on extensions are lifted. We discussed dropping the third one entirely, but think it *is* a useful and important level of access control, and when/if we ever get the ability to write unit tests inside of the file that defines the functionality, they will be a nicer solution to @testable.</blockquote><blockquote type="cite" class="quoted-plain-text">>></blockquote><blockquote type="cite" class="quoted-plain-text">>> The thing we need to know is what the spelling should be for the third one. Off hand, perhaps:</blockquote><blockquote type="cite" class="quoted-plain-text">>></blockquote><blockquote type="cite" class="quoted-plain-text">>> fileprivate</blockquote><blockquote type="cite" class="quoted-plain-text">>> private(file)</blockquote><blockquote type="cite" class="quoted-plain-text">>> internal(file)</blockquote><blockquote type="cite" class="quoted-plain-text">>> fileaccessible</blockquote><blockquote type="cite" class="quoted-plain-text">>> etc</blockquote><blockquote type="cite" class="quoted-plain-text">>></blockquote><blockquote type="cite" class="quoted-plain-text">>> Some other thoughts on the choice:</blockquote><blockquote type="cite" class="quoted-plain-text">>> - this will be a declaration modifier, so it will not “burn” a keyword.</blockquote><blockquote type="cite" class="quoted-plain-text">>> - if will be a uniquely Swift thing, so there is virtue in it being a googlable keyword.</blockquote><blockquote type="cite" class="quoted-plain-text">>></blockquote><blockquote type="cite" class="quoted-plain-text">>> Thoughts appreciated.</blockquote><blockquote type="cite" class="quoted-plain-text">>></blockquote><blockquote type="cite" class="quoted-plain-text">>> -Chris</blockquote><blockquote type="cite" class="quoted-plain-text">>></blockquote><blockquote type="cite" class="quoted-plain-text">>> _______________________________________________</blockquote><blockquote type="cite" class="quoted-plain-text">>> swift-evolution mailing list</blockquote><blockquote type="cite" class="quoted-plain-text">>> <a href="mailto:swift-evolution@swift.org" data-mce-href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br data-mce-bogus="1"></blockquote><blockquote type="cite" class="quoted-plain-text">>> <a href="https://lists.swift.org/mailman/listinfo/swift-evolution" data-mce-href="https://lists.swift.org/mailman/listinfo/swift-evolution">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br data-mce-bogus="1"></blockquote><blockquote type="cite" class="quoted-plain-text">></blockquote><blockquote type="cite" class="quoted-plain-text">> _______________________________________________</blockquote><blockquote type="cite" class="quoted-plain-text">> swift-evolution mailing list</blockquote><blockquote type="cite" class="quoted-plain-text">> <a href="mailto:swift-evolution@swift.org" data-mce-href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br data-mce-bogus="1"></blockquote><blockquote type="cite" class="quoted-plain-text">> <a href="https://lists.swift.org/mailman/listinfo/swift-evolution" data-mce-href="https://lists.swift.org/mailman/listinfo/swift-evolution">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br data-mce-bogus="1"></blockquote><blockquote type="cite" class="quoted-plain-text"><br></blockquote><blockquote type="cite" class="quoted-plain-text">_______________________________________________</blockquote><blockquote type="cite" class="quoted-plain-text">swift-evolution mailing list</blockquote><blockquote type="cite" class="quoted-plain-text"><a href="mailto:swift-evolution@swift.org" data-mce-href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br data-mce-bogus="1"></blockquote><blockquote type="cite" class="quoted-plain-text"><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" data-mce-href="https://lists.swift.org/mailman/listinfo/swift-evolution">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br data-mce-bogus="1"></blockquote>_______________________________________________<br>swift-evolution mailing list<br><a href="mailto:swift-evolution@swift.org" data-mce-href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" data-mce-href="https://lists.swift.org/mailman/listinfo/swift-evolution">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br></span></div></div></blockquote></div></div></body></html>