[swift-evolution] [swift-evolution-announce] [Review] SE-0169: Improve Interaction Between private Declarations and Extensions
2th at gmx.de
Thu Apr 13 02:15:52 CDT 2017
> No change
> Benefit: No change to the language.
> Drawback: Must use “fileprivate” to build up a type through extensions.
> Benefit: Simplifies the access control model.
> Drawback: Cannot protect invariants within a file.
> Benefit: Cross-type sharing is clearly marked.
> Drawback: Must use a helper type to protect invariants within a file.
> Benefit: No change to semantics.
> Drawback: Two separate keywords are changed.
As the dedicated thread was highjacked ;-), imho it's just fair to add another option here...
Benefit: Expressive power, no breaking change (and more…)
Drawback: More indentation
The table is quite boring:
Simple file private
Helper visible private
Helper hidden private
Multi-type + ext private
I'm not sure about the colour, but if I wasn't to lazy to edit raw HTML, imho there would a lot of green ;-)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution