[swift-evolution] [Pitch] consistent public access modifiers
jordan_rose at apple.com
Wed Feb 15 20:12:21 CST 2017
> On Feb 14, 2017, at 18:16, Xiaodi Wu via swift-evolution <swift-evolution at swift.org> wrote:
> So, perhaps I'm being simplistic here, but--
> At the end of the day, aren't we simply trying to enable a resiliency feature? Could it not be said that an enum where future added cases aren't source-breaking is a more resilient enum?
> Since there is consensus that the status quo is desirable for a lot of use cases, couldn't we keep spelling it "public enum" and just spell this proposed more resilient enum "@resilient public enum"?
Not quite. Resilience is about making changes that aren't source-breaking also not ABI-breaking (within reason, balanced against performance implications). "Open" vs. "non-open" enums also affect modules distributed as source—is it a source-breaking change to add a new case or not?
More information about the swift-evolution