[swift-evolution] Class scoped access level
Paul Cantrell
cantrell at pobox.com
Mon Sep 12 09:56:01 CDT 2016
> On Sep 10, 2016, at 5:25 PM, Charles Srstka <cocoadev at charlessoft.com> wrote:
>
>> On Sep 10, 2016, at 2:52 PM, Xiaodi Wu via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>>
>> Is that (i.e. having properties in extensions) listed in the completing generics manifesto? It certainly seems like it'd be a worthwhile feature to consider under that umbrella.
>
> I think that came up at some point, but was deemed not to be implementable in a sufficiently performant way.
It seems like it ought to be implementable for _in-module_ extensions, since presumably the memory layout of each type is fungible until the module is compiled.
In-module extensions address the use case I had in mind, namely breaking apart a large type by isolating some private properties within extensions. It seems like the possible and the desirable may actually intersect here.
P
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160912/b6c7bcd0/attachment.html>
More information about the swift-evolution
mailing list