[swift-evolution] [Fake-Proposal] Remove enums with associated objects
Joe Groff
jgroff at apple.com
Mon Feb 20 14:43:00 CST 2017
> On Feb 20, 2017, at 12:07 PM, Tino Heth via swift-evolution <swift-evolution at swift.org> 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
More information about the swift-evolution
mailing list