> On Jul 4, 2016, at 10:43 AM, Leonardo Pessoa <m...@lmpessoa.com> wrote:
> 
> My issue with this being opt-in is third-party libraries.

That's why we have retroactive modeling. :^)

        import SomeEnumKit
        extension SomeEnum: ValuesEnumerable {}

You can extend another module's public enum to add conformance to a protocol, 
and there's no reason it can't generate the code in your module instead of 
theirs.

-- 
Brent Royal-Gordon
Architechies

_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to