[swift-evolution] Pre-proposal: CaseEnumerable protocol (derived collection of enum cases)
david at alkaline-solutions.com
Tue Jan 19 13:37:43 CST 2016
ErrorType’s magic is only for Objective-C interoperability, and only exposed by diving into compiler implementation-level protocols.
This seems like a case where some syntax consistency is needed between ‘code generation’ proposals (such as member wise initializers). If there was guidance on what an eventual macro system syntax could look like, this could be taken into account as well.
> On Jan 19, 2016, at 11:36 AM, Jacob Bandes-Storch via swift-evolution <swift-evolution at swift.org> wrote:
> Yes: ErrorType.
> On Tue, Jan 19, 2016 at 10:21 AM, Sune Foldager <cyano at me.com <mailto:cyano at me.com>> wrote:
> Hm, I don’t think I like that. Are there other examples of magic protocols in Swift?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution