[swift-evolution] [Proposal] Union Type

L. Mihalkovic laurent.mihalkovic at gmail.com
Fri Jul 1 12:47:38 CDT 2016


@core team: should the be added to the list of common rejections for now or does it stand a chance in the next 2 or 3 versions?

Regards
LM
(From mobile)

> On Jul 1, 2016, at 11:06 AM, Cao Jiannan via swift-evolution <swift-evolution at swift.org> wrote:
> 
> https://github.com/frogcjn/swift-evolution/blob/master/proposals/xxxx-union-type.md
> 
> Hi,
> 
> I'm now officially proposal the union type feature for Swift. Please see:
> 
> 
> https://github.com/apple/swift/commit/eb7311de065df7ea332cdde8782cb44f9f4a5121
> Introduction
> 
> Add union type grammar, represents the type which is one of other types.
> 
> var stringOrURL: String | URL = "https://www.apple.com"
> 
> 
> I would be thankful if someone support this idea and give some advice. Thanks!
> 
> 
> --
> Jiannan
> 
> 
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160701/e619d65d/attachment.html>


More information about the swift-evolution mailing list