[swift-evolution] Require parameter names for ENUM Associated Types?
Charles Srstka
cocoadev at charlessoft.com
Tue Nov 29 09:55:48 CST 2016
> On Nov 29, 2016, at 9:52 AM, Adrian Zubarev via swift-evolution <swift-evolution at swift.org> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20161129/9e84532e/attachment.html>
More information about the swift-evolution
mailing list