[swift-evolution] [proposal] Either in the Swift Standard Library

Craig Cruden ccruden at novafore.com
Thu Jan 28 21:18:10 CST 2016

So to summarize….

Either is too specialized and thus not a good add…

And the general implementation that is not specialized - is likely too complicated to easily add.


> On 2016-01-29, at 1:08:44, Chris Lattner via swift-evolution <swift-evolution at swift.org> wrote:
>> On Jan 27, 2016, at 10:09 PM, Thorsten Seitz via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>> As an alternative to Either for expressing a sum type I'd like to throw real union types like Ceylon uses into the discussion.
>> http://ceylon-lang.org/documentation/1.2/tour/types/ <http://ceylon-lang.org/documentation/1.2/tour/types/>
> FWIW, this has been discussed before on swift-evolution.  Adding them isn’t out of the question, but it is a lot more complicated than it looks for the type checker.
> -Chris
> _______________________________________________
> 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/20160129/71e05bb0/attachment.html>

More information about the swift-evolution mailing list