It seems like it would make sense to model enum subsets as a subtype 
relationship.

Is the core team planning on drawing up a structs/enums subtyping proposal 
later this year?

Austin

> On Jun 3, 2016, at 10:25 PM, Chris Lattner <[email protected]> wrote:
> 
> 
>> On Jun 3, 2016, at 2:35 PM, T.J. Usiyan via swift-evolution 
>> <[email protected] <mailto:[email protected]>> wrote:
>> 
>> Since this seems to have some interest, I've made a gist.
>> 
>> https://gist.github.com/griotspeak/963bc87a0c244c120264b11fb022d78c 
>> <https://gist.github.com/griotspeak/963bc87a0c244c120264b11fb022d78c>
> We have frequently discussed introducing subtype relationships between 
> structs and enums, in an effort to allow limited implicit promotions (e.g. 
> from small integers to wider integers).  Wouldn’t that be a more general 
> solution to this same problem?
> 
> -Chris
> 

_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to