[swift-evolution] SE-0025: Scoped Access Level, next steps

Matt Whiteside mwhiteside.dev at gmail.com
Mon Mar 28 13:41:34 CDT 2016


If the following parenthesized access keywords are still on the table as an option,

> On Mar 27, 2016, at 14:31, Haravikk via swift-evolution <swift-evolution at swift.org> wrote:
> 
> 	public				as-is, item is public/exported outside of module
> 	private(module) or private	current internal, item is private to this module, would be the default
> 	private(file)			current private, item is private to this file
> 	private(scope)			new visibility type, item is private to the current scope



I would prefer them over these ones:

	public
        moduleprivate
        fileprivate
        private

To my eyes, the parenthesized ones are more readable and understandable.

-Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160328/b5dea0a6/attachment.html>


More information about the swift-evolution mailing list