> On Mar 28, 2016, at 12:41 PM, Matt Whiteside via swift-evolution > <[email protected]> wrote: > > 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 >> <[email protected] <mailto:[email protected]>> 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.
+1 to paren syntax for readability, private(module) being the default if nothing declared, private with no parenthesized access keyword can default to either file or scope. -DW
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
