[swift-evolution] Either protocol syntax

Anton Zhilin antonyzhilin at gmail.com
Thu Feb 2 16:02:40 CST 2017

As a side note, some people want inline enum types with exact syntax of A|B.
The difference is that in this case the chosen side of inline enum is
always meaningful. That is, if S:A&B and x:S, then .0(x) as A|B ≠ .1(x) as
I guess, the version suggested by TS reflects what Chris considered
harmful. Those inline enums may be more feasible.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170203/7a132734/attachment.html>

More information about the swift-evolution mailing list