<div dir="ltr">If we had generic protocols, you could implement RawRepresentable twice, once using Ints and one using Strings. But that&#39;s probably never going to happen.<div><br></div><div>/digression</div><div><br></div><div>Austin</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 31, 2016 at 3:11 PM, Erica Sadun via swift-evolution <span dir="ltr">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
&gt; On May 31, 2016, at 4:07 PM, Brent Royal-Gordon via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; • also wants OptionSetType-like behavior (and thus an Int raw type).<br>
&gt;<br>
&gt; Then it&#39;s not an `enum`, it&#39;s a `struct`.<br>
<br>
</span>You can get it for free as an array of enums and test with contains vs member<br>
<br>
-- E, who has probably digressed more than she really should<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
</div></div></blockquote></div><br></div>