[swift-evolution] [Fake-Proposal] Remove enums with associated objects
2th at gmx.de
Tue Feb 21 00:34:22 CST 2017
Damn, there seems to be no better way to create reactions than saying something stupid ;-) - to bad the reactions tend to focus on the stupidity in this case...
It should have been "union" instead of "sum", so basically having Optional<T> modeled as (T | Void)
> 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.
More information about the swift-evolution