<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>Is anyone starting to think the current access control model will become more burdensome over time?</div><div><br></div><div>People will want to add and subtract to it for years to come...which tells me it's not very flexible. I'm beginning to feel like it is an old style model trying to fit into a modern language.&nbsp;</div><div><br></div><div>For example, fileprivate and private encourage stuffing a lot of code into one file just to use that access control level. If you want to break this into more manageable chunks you have to make it internal or move it into a new module which is very complicated to do in Xcode (I.e requiring a new target like a framework).&nbsp;</div><div><br></div><div>This keeps leading me back to having submodules or creating modules on demand. I think that would open up this system to great complexity.</div><div><br></div><div>Want to keep something private to a specific class but private to anything outside of it? Make it internal to the same "submodule".&nbsp;</div><div><br></div><div>I think we could keep tacking on things to access control, but I don't think it is really solving everyone's needs. I think a more flexible system would allow people to adapt it to their needs instead of structuring everything around a rigid system that forces you to do it swift's way.&nbsp;</div><div><br>On Nov 29, 2016, at 10:24 AM, Gonçalo Alvarez Peixoto via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">Hello, everyone!<div><br></div><div>I would like to introduce a new proposal to swift evolution, but first I would love to run it by all of you so I get everyone's feedback and enrich it.</div><div><br></div><div>This proposal consists of introducing a new <b>typeprivate </b>access control level which allows for members to be accessed in all extensions of a given <b>type,</b>&nbsp;whether lying within or in another file.</div><div><br></div><div>You'll find the proposal draft in:</div><div><a href="https://github.com/goncaloalvarez/swift-evolution/blob/master/proposals/NNNN-introduce-typeprivate-access-control-level.md" target="_blank">https://github.com/<wbr>goncaloalvarez/swift-<wbr>evolution/blob/master/<wbr>proposals/NNNN-introduce-<wbr>typeprivate-access-control-<wbr>level.md</a></div><div><br></div><div>Thanks in advance for taking the time to evaluate the proposal.</div><div><br></div><div>Best regards,</div><div>Gonçalo</div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>swift-evolution mailing list</span><br><span><a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a></span><br><span><a href="https://lists.swift.org/mailman/listinfo/swift-evolution">https://lists.swift.org/mailman/listinfo/swift-evolution</a></span><br></div></blockquote></body></html>