> On Feb 20, 2017, at 12:07 PM, Tino Heth via swift-evolution 
> <[email protected]> wrote:
> 
> Obviously, this won't become an accepted proposal -  neither the time nor the 
> author would be appropriate for such a result.
> But the list seems a little bit bored lately, so maybe a relaxed discussion 
> without practical implications isn't the worst thing to have now ;-)
> 
> Several current threads seem to cry for sum types, so imho it is a valid 
> question what's wrong with them, and why Swift prefers enums instead.

Enums in Swift *are* sum types. There are various ergonomic issues with their 
usability, perhaps, but any implementation of sum types would be different 
sugar over the same underlying semantic model.

-Joe
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to