[swift-evolution] Enhancing access levels without breaking changes
Tino Heth
2th at gmx.de
Mon Apr 10 12:22:06 CDT 2017
>> I don't buy this argument at all without an objective explanation why the curly braces of extensions should be treated different than the curly braces of types…
> Extensions are not Partials.
>> do you think sprinkling parts of class over the project is easier to follow?
> Extensions are not Partials.
I can't see how statement and answer(?) are related to the original post… or did I miss that this topic is about partials? :)
>> it can be delayed for as long as the core team likes, without causing any trouble.
> Partials limited to the same scope can do the same
That is true… so can we agree that nothing should change now, so that something can be added later? ;-)
> with out having to give extension special nesting powers :)
I would say there's no doubt that extensions are withhold the common nesting powers of all other, similar constructs in Swift: Classes can be nested, Structs can be nested, Enums can be nested, functions can be nested, protocols… I haven't tried yet, but associated objects are something comparable ;-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170410/d9ba3ccd/attachment.html>
More information about the swift-evolution
mailing list