[swift-evolution] SE-0025: Scoped Access Level, next steps
swift-evolution at haravikk.me
Thu Mar 24 11:34:07 CDT 2016
> On 24 Mar 2016, at 15:32, Ross O'Brien via swift-evolution <swift-evolution at swift.org> wrote:
> I agree that 'private' still feels too subjective on its own. It's intuitively 'not public'; it's not intuitively the access term for 'declaration only'.
> I'm not opposed to fileprivate and moduleprivate, if we like those terms. I'd just prefer a corresponding scopeprivate or declarationprivate.
This is why I like the idea of declaring private(file), private(module) or private(type), as all are a form of privacy as none are available externally, but the parameter clarifies in what way they are limited internally, though private(type) could be the default if no parameter is given.
More information about the swift-evolution