[swift-evolution] [proposal] Either in the Swift Standard Library
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.
> swift-evolution mailing list
> swift-evolution at swift.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution