<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div> <br> <div id="bloop_sign_1490109124210299904" class="bloop_sign"></div> <br><p class="airmail_on">On March 21, 2017 at 7:00:32 AM, Tino Heth (<a href="mailto:2th@gmx.de">2th@gmx.de</a>) wrote:</p> <div><blockquote type="cite" class="clean_bq" style="font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span><div><span style="color: rgb(0, 0, 0); font-family: 'helvetica Neue', helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); float: none; display: inline !important;">&gt; If private is really more useful, should we remove fileprivate instead?</span></div></span></blockquote></div><p>We don’t have to remove any access modifier. &nbsp;They are all useful.</p><div><blockquote type="cite" style="font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; padding-left: 5px; border-left-width: 1px !important; border-left-color: rgb(0, 64, 128) !important;"><span style="font-family: 'helvetica Neue', helvetica; font-size: 14px;">&gt; Fact is, you can replace every occurrence of "private" with "fileprivate", and your source would compile as before, whereas fileprivate saves us from a "friend"-keyword.</span></blockquote></div><p>This is certainly a source-breaking change. &nbsp;Consider:</p><blockquote type="cite" style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; padding-left: 5px; border-left-width: 1px !important; border-left-color: rgb(0, 64, 128) !important;"><p>struct Foo {</p><p>&nbsp; &nbsp; fileprivate func foo()-&gt;String {return "foo" }</p><p>&nbsp; &nbsp; private func foo()-&gt;Int {return 2} &nbsp;&nbsp;</p><p>}</p><p>print("\(Foo().foo())")</p></blockquote><p>Replacing “private” with “fileprivate” here will introduce a compile error.</p><p><br></p><p><br></p><div></div><div></div></body></html>