[swift-evolution] private & fileprivate

Charles Constant charles at charlesism.com
Fri Oct 7 07:56:41 CDT 2016


I actually prefer "fileprivate" to the alternatives, but imo using the word
"private" is a bad choice for this, since it's basically a relative term.
If we're going with parens "visibility(file)" makes more sense to me.



On Fri, Oct 7, 2016 at 5:00 AM, Georgios Moschovitis via swift-evolution <
swift-evolution at swift.org> wrote:

> > FWIW, I fully agree with you and I do believe your suggestion just much
> > ...
> > 'moduleprivate'.. but these are just ugly(just like fileprivate ;-) )
>
> +1
>
> I would also much prefer
>
> private(scope)
> private(file)
> private(module)
> etc...
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20161007/5804ce28/attachment.html>


More information about the swift-evolution mailing list