<div dir="ltr">&gt; What is your evaluation of the proposal?<div><br></div><div>If this is the last option we have to change the status quo, any renaming is off the table, no further changes after Swift 4, and it&#39;s either this or being stuck with &#39;fileprivate&#39; until the end of time, then +1 from me. It will increase the convenience of access control for people like me who see types and their extensions as parts of the same entity, just spread visually across neighboring blocks. In almost any other language these two would indeed be one entity, since most languages don&#39;t have any way of dividing types into pieces this way.</div><div><br></div><div>However, IMHO any of these would be a better solution:</div><div><br></div><div>1) Rename &#39;private&#39; to something else (&#39;scoped&#39;?) and rename &#39;fileprivate&#39; back to &#39;private&#39;</div><div><br></div><div>2) Rename &#39;fileprivate&#39; to something more friendly (I liked the &#39;local&#39; suggestion that Vladimir made today)</div><div><br></div><div>3) Postpone this until we add submodules, but with the assumption that it will be possible to make some source-breaking changes at that point</div><div><br></div><div>The thing I don&#39;t like about this proposal (or status quo) - apart from the fact that it will make people who like the current strict private unhappy - is that &#39;private&#39; even right now means kind of two different things:</div><div><br></div><div>- for a property or a method defined in a class/struct, it means &quot;available only inside this type&quot;</div><div>- for a private global variable/constant/function, or a private type or extension, it means &quot;available in this file&quot; i.e. the same as &#39;fileprivate&#39;</div><div><br></div><div>So if we&#39;re worried that this proposal makes the meaning of &#39;private&#39; unclear - it already is unclear. Wouldn&#39;t it be much more clear if private global variables, functions and classes were required to use the access level that means &quot;available in this file&quot;, since that&#39;s how they actually work? (as long as this level is not named &#39;fileprivate&#39; :)</div><div><br></div><div>And the other access level, the &quot;available only inside this type&quot; (private / scoped), could only be used for things that are actually contained inside a type, and wouldn&#39;t have two different meanings depending on whether it&#39;s at the root of the file or nested inside something else.</div><div><br></div><div>I really believe that even though this is kind of painful for everyone, it&#39;s worth spending time to figure out a solution that satisfies most of us and makes the language clearer and friendlier in the long term, even if it means breaking compatibility again. Do we want to be stuck with an imperfect solution 10 years from now, because we didn&#39;t want to do this last breaking change now?</div><div><br></div><div><br>&gt; Is the problem being addressed significant enough to warrant a change to Swift?<br><br></div><div>I think almost everyone here agrees it is significant.</div><div><br></div><div><br></div><div>&gt; Does this proposal fit well with the feel and direction of Swift?</div><div><br></div><div>This is a difficult question. IMHO it would definitely fit much better with the direction of Swift if we bit the bullet and did whatever we agree will make the language simpler and better long term, regardless how many changed lines in git this will cause when Swift 4 is released.</div><div><br></div><div><br>&gt; If you have used other languages or libraries with a similar feature, how do you feel that this proposal compares to those?</div><div><br></div><div>I&#39;ve used many languages, but I think in none of them it was a common thing (or even a possibility) to split types into several blocks like we do in Swift with extensions, so the main issue we&#39;re talking about didn&#39;t exist there. In Ruby you can kind of do the same thing with modules - if you have a private method in a module, you can access it from methods in the main type, even if they&#39;re defined in a different file. (But Ruby isn&#39;t very strict about access control in general, e.g. it allows you to call private methods on any object via #send).</div><div><br></div><div><br>&gt; How much effort did you put into your review? A glance, a quick reading, or an in-depth study?</div><div><br></div><div>I&#39;ve read or skimmed through most of the messages in the recent threads about this and the last proposal.</div><div><br></div><div>Disclaimer: I have very little experience with Swift 3 (but plenty with Swift 2.x).</div><div><br>Kuba</div><div><br></div></div>