[swift-evolution] [Proposal] Enum subsets
Chris Lattner
clattner at apple.com
Sat Jun 4 00:25:35 CDT 2016
> On Jun 3, 2016, at 2:35 PM, T.J. Usiyan via swift-evolution <swift-evolution at swift.org> wrote:
>
> Since this seems to have some interest, I've made a gist.
>
> https://gist.github.com/griotspeak/963bc87a0c244c120264b11fb022d78c <https://gist.github.com/griotspeak/963bc87a0c244c120264b11fb022d78c>
We have frequently discussed introducing subtype relationships between structs and enums, in an effort to allow limited implicit promotions (e.g. from small integers to wider integers). Wouldn’t that be a more general solution to this same problem?
-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160603/fd069cfd/attachment.html>
More information about the swift-evolution
mailing list