[swift-evolution] [Fake-Proposal] Remove enums with associated objects
spestov at apple.com
Tue Feb 21 14:25:40 CST 2017
One example is that in Java, it is difficult to distinguish a failed hashtable lookup from a hashtable lookup that produced a value of null. In Swift, these would be modeled as .none and .some(.none), respectively.
> On Feb 21, 2017, at 8:36 AM, Joe Groff via swift-evolution <swift-evolution at swift.org> wrote:
>> On Feb 20, 2017, at 10:34 PM, Tino Heth <2th at gmx.de> wrote:
>> 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)
> swift-evolution mailing list
> swift-evolution at swift.org
More information about the swift-evolution