[swift-evolution] Swift evolution proposal: introduce typeprivate access control level

Martin Waitz tali at admingilde.org
Thu Dec 1 11:47:27 CST 2016


Hi,

Am 2016-12-01 11:08, schrieb Álvaro Monteiro via swift-evolution:
> - Typeprivate would allow to abandon the odd fileprivate. Access level
> would be constrained to swift constructs (structs, classes and
> extensions) and not to a compiler artifact (file).

Files are not compiler artifacts but design artifacts.
They group related stuff which was designed together and which should be reviewed together.

I really like `fileprivate` and how Swift currently handles access control.

-- 
Martin


More information about the swift-evolution mailing list