[swift-evolution] private & fileprivate
Rien at Balancingrock.nl
Sun Oct 9 12:40:46 CDT 2016
> On 09 Oct 2016, at 19:22, Daniel Tartaglia via swift-evolution <swift-evolution at swift.org> wrote:
> the programer specifies exactly which methods can be used by which classes.
That IMO is the only sensible solution. Everything else -even in the name of simplicity- will be insufficient and complicate matters.
> So a “public” method would be defined as accessible to “[Any]” and a private method would be defined as accessible to “[Self]”. If you want to grant access of a particular method to only particular helper classes, you would specify them.
> Having a system like that would solve Karl’s problem because it wouldn’t matter what physical file the classes are in.
> swift-evolution mailing list
> swift-evolution at swift.org
More information about the swift-evolution