# Adding Either type to the Standard Library

**URL:** <https://forums.swift.org/t/adding-either-type-to-the-standard-library/36972>\
**Category:** Discussion\
**Tags:** stdlib\
**Created:** [May 28, 2020, 7:00pm UTC](https://forums.swift.org/t/adding-either-type-to-the-standard-library/36972 "2020-05-28T19:00:24Z")\
**Posts on this page:** 1\
**Showing post:** 21

<div class="post-metadata">

**Author:** ![Jumhyn](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/jumhyn/32/3891_2.png) [@Jumhyn](https://forums.swift.org/u/Jumhyn)\
**Post date:** [May 29, 2020, 12:38pm UTC](https://forums.swift.org/t/adding-either-type-to-the-standard-library/36972/21 "2020-05-29T12:38:52Z")

</div>

> [@Tino](#):
>
> but for whatever reason, this feature is on the list of commonly rejected changes ☹

The commonly rejected change, as I understand it, is specifically about `union`-esque types (logical OR), which is slightly different from anonymous sum types (closer to logical XOR if you want to extend that analogy). Indeed, the note explaining why it won’t be accepted says that it is “something the type system cannot and should not support,” but the type system clearly can (and should!) support anonymous sum types—they are just `enum`s with less characters.

---

_[View the full topic](https://forums.swift.org/t/adding-either-type-to-the-standard-library/36972)._
