[swift-evolution] [Draft] Harmonize access modifiers for extensions
Goffredo Marocchi
panajev at gmail.com
Mon Jul 18 02:59:58 CDT 2016
Hello Xiaodi,
> A general principle of Swift, recently strengthened by proposals such as SE-0117, has been that public API commitments should require explicit opt-in. Given the different behavior of classes and structs, the fact that extensions allow public methods to be declared without spelling out public at the declaration site has been called "confusing" or "odd."
I think this is slightly misleading as that proposal dealt with classes being sealed by default outside of the current module while from your summary this would be also an explicit call for final by default which is not something the core team said explicitly or that the Swift community largely agrees with.
Sent from my iPhone
> On 18 Jul 2016, at 08:50, Xiaodi Wu via swift-evolution <swift-evolution at swift.org> wrote:
>
> A general principle of Swift, recently strengthened by proposals such as SE-0117, has been that public API commitments should require explicit opt-in. Given the different behavior of classes and structs, the fact that extensions allow public methods to be declared without spelling out public at the declaration site has been called "confusing" or "odd."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160718/ed3fa3c9/attachment.html>
More information about the swift-evolution
mailing list