<div dir="ltr">To answer the original question: at file scope the access modifiers `private` and `fileprivate` have exactly the same effect. It does not matter which of them you use there.<div><br></div><div>Nevin</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 28, 2016 at 12:14 PM, Marco S Hyman via swift-users <span dir="ltr"><<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On Sep 28, 2016, at 8:04 AM, Jens Alfke via swift-users <<a href="mailto:swift-users@swift.org">swift-users@swift.org</a>> wrote:<br>
><br>
><br>
>> On Sep 28, 2016, at 12:16 AM, Cao Jiannan via swift-users <<a href="mailto:swift-users@swift.org">swift-users@swift.org</a>> wrote:<br>
>><br>
>> I think the Swift team should tell us which is better.<br>
><br>
> If one were better than the other, they wouldn’t both exist...<br>
><br>
> It depends on whether you need to use those entities in other source files in the same module.<br>
> If you don’t, use fileprivate. If you do, use private.<br>
<br>
</span>private is *more* restrictive than fileprivate. If you need to use the entities in other source files in the same module you want internal, not private.<br>
<div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
swift-users mailing list<br>
<a href="mailto:swift-users@swift.org">swift-users@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-users" rel="noreferrer" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-users</a><br>
</div></div></blockquote></div><br></div>