> On Nov 29, 2016, at 9:52 AM, Adrian Zubarev via swift-evolution 
> <[email protected]> wrote:
> 
> I just showed a direction of what could be possible. 
> 
> Personally I think it would be enough if we had this:
> 
> enum MyEnum {
>      
>     case a
>     case b(Int)
>     case b(Int, string: String)
> }  
> Where .b can be overloaded by it’s associated types.
> 

Or default values:

enum MyEnum {
        case a
        case b(Int, string: String = “SomeDefault”)
}

Charles

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

Reply via email to