[swift-evolution] Make access control private by default.

Amir Michail a.michail at me.com
Mon Dec 7 10:54:26 CST 2015


> On Dec 7, 2015, at 11:52 AM, Stephen Celis <stephen.celis at gmail.com> wrote:
> 
> If you group these methods in a `private extension`, they'll be private by default, which seems to be a nice alternative to me.
> 

I wouldn’t want to reorder methods like that.

Swift compiles take up a lot of energy and I suspect people programming on MacBooks would like to make incremental compiles as efficient as possible to make their batteries last longer.

> Stephen
> 
> On Mon, Dec 7, 2015 at 11:49 AM, Amir Michail <a.michail at me.com <mailto:a.michail at me.com>> wrote:
> 
>> On Dec 7, 2015, at 11:46 AM, Stephen Celis <stephen.celis at gmail.com <mailto:stephen.celis at gmail.com>> wrote:
>> 
>> Have your read https://github.com/apple/swift/blob/master/docs/AccessControl.rst <https://github.com/apple/swift/blob/master/docs/AccessControl.rst>?
>> 
>> I prefer the current rationale behind "internal" by default.
>> 
>> Stephen
> 
> I must admit that I make as many things private as possible so that I can have the faster incremental compiles.
> 
>> 
>> On Mon, Dec 7, 2015 at 11:35 AM, Amir Michail via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>> Not only will this reduce bugs but it will also speed up compile times.
>> _______________________________________________
>> swift-evolution mailing list
>> swift-evolution at swift.org <mailto:swift-evolution at swift.org>
>> https://lists.swift.org/mailman/listinfo/swift-evolution <https://lists.swift.org/mailman/listinfo/swift-evolution>
>> 
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151207/60e814e9/attachment.html>


More information about the swift-evolution mailing list