[swift-evolution] [proposal] Either in the Swift Standard Library
Dave Abrahams
dabrahams at apple.com
Fri Jan 29 10:53:13 CST 2016
on Thu Jan 28 2016, Craig Cruden <swift-evolution at swift.org> wrote:
> So to summarize….
>
> Either is too specialized and thus not a good add…
I would say the opposite; what most people think of as Either is not
specialized enough, because it has no concrete semantics attached.
> And the general implementation that is not specialized - is likely too complicated to easily add.
>
> :o
>
>> 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
>
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
--
-Dave
More information about the swift-evolution
mailing list