<div>I updated the proposal <br class="gmail_msg"><br class="gmail_msg"><a href="https://github.com/wh1pch81n/swift-evolution/blob/master/proposals/NNNN-Swift-enum-strings-ported-to-Objective-c.md" class="gmail_msg" target="_blank">https://github.com/wh1pch81n/swift-evolution/blob/master/proposals/NNNN-Swift-enum-strings-ported-to-Objective-c.md</a><br class="gmail_msg"><br class="gmail_msg">And I also posted the question on Reddit. <br class="gmail_msg"><br class="gmail_msg"><a href="https://www.reddit.com/r/ObjectiveC/comments/5livbi/improve_ns_string_enum/?st=IXJK9UXL&amp;sh=80e8c7d8" class="gmail_msg" target="_blank">https://www.reddit.com/r/ObjectiveC/comments/5livbi/improve_ns_string_enum/?st=IXJK9UXL&amp;sh=80e8c7d8</a></div><div><br class="gmail_msg"><br class="gmail_msg"><br class="gmail_msg"><div class="gmail_quote gmail_msg"><div class="gmail_msg">On Wed, Jan 4, 2017 at 2:51 PM Derrick Ho &lt;<a href="mailto:wh1pch81n@gmail.com" class="gmail_msg" target="_blank">wh1pch81n@gmail.com</a>&gt; wrote:<br class="gmail_msg"></div><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The underline can be omitted. To remain more consistent.  <br class="gmail_msg"><br class="gmail_msg">    enum City: String {<br class="gmail_msg">       case NewYork = &quot;New York&quot;<br class="gmail_msg">    } <br class="gmail_msg"><br class="gmail_msg">    typedef NSString * City;<br class="gmail_msg">    static City const CityNewYork = @&quot;New York&quot;;<br class="gmail_msg"><br class="gmail_msg"><br class="gmail_msg"><br class="gmail_msg"><div class="gmail_quote gmail_msg"><div class="gmail_msg">On Wed, Jan 4, 2017 at 2:22 PM Rod Brown &lt;<a href="mailto:rodney.brown6@icloud.com" class="gmail_msg" target="_blank">rodney.brown6@icloud.com</a>&gt; wrote:<br class="gmail_msg"></div><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_msg"><div class="gmail_msg">I&#39;m not part of the core team, of course, but I like this change in principle.</div><div id="m_-4435343234474424445m_9161519832084247711m_1459424563651473008AppleMailSignature" class="gmail_msg"><br class="gmail_msg"></div><div id="m_-4435343234474424445m_9161519832084247711m_1459424563651473008AppleMailSignature" class="gmail_msg">My one concern in this case would be choosing a naming convention for the back port that makes sense both ways. The naming convention you propose ( EnumName_EnumCase) seems inconsistent with the current import of strings from Obj-C to Swift. Could we find a way to unify them?</div></div><div class="gmail_msg"><div class="gmail_msg"><br class="gmail_msg">On 31 Dec 2016, at 4:15 am, Derrick Ho via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="gmail_msg" target="_blank">swift-evolution@swift.org</a>&gt; wrote:<br class="gmail_msg"><br class="gmail_msg"></div><blockquote type="cite" class="gmail_msg"><div class="gmail_msg">I&#39;m trying to revive an old thread.  I&#39;d like to hear from the community.<br class="gmail_msg"><br class="gmail_msg">Can we make a swift enum string interoperable with Objective-C?<br class="gmail_msg"><br class="gmail_msg">Currently NS_STRING_ENUM ports from objective-c to swift but not the other way around.<br class="gmail_msg"><br class="gmail_msg">I feel that if you can go one direction you should be able to go back.<br class="gmail_msg"><br class="gmail_msg">@objc<br class="gmail_msg">enum City: String {<br class="gmail_msg">       case NewYork = &quot;New York&quot;<br class="gmail_msg">} <br class="gmail_msg"><br class="gmail_msg">Make this available as a global string in objective -c ?<br class="gmail_msg"><div class="gmail_quote gmail_msg"><div class="gmail_msg">On Wed, Nov 23, 2016 at 5:55 AM Derrick Ho &lt;<a href="mailto:wh1pch81n@gmail.com" class="gmail_msg" target="_blank">wh1pch81n@gmail.com</a>&gt; wrote:<br class="gmail_msg"></div><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="white-space:pre-wrap" class="gmail_msg">I think enum strings should gain better interoperability with swift. Something like this:<br><br><br><br>    enum City: String {<br><br>       case NewYork = &quot;New York&quot;<br><br>    } <br><br><br><br>This can be ported over to Objective-c like this:<br><br><br><br>    typedef NSString * City;<br><br>    static City const City_NewYork = @&quot;New York&quot;;<br class="gmail_msg"></div><br><br></blockquote></div><br><br></div></blockquote></div><div class="gmail_msg"><blockquote type="cite" class="gmail_msg"><div class="gmail_msg"><span class="gmail_msg">_______________________________________________</span><br class="gmail_msg"><span class="gmail_msg">swift-evolution mailing list</span><br class="gmail_msg"><span class="gmail_msg"><a href="mailto:swift-evolution@swift.org" class="gmail_msg" target="_blank">swift-evolution@swift.org</a></span><br class="gmail_msg"><span class="gmail_msg"><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" class="gmail_msg" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a></span><br class="gmail_msg"></div></blockquote></div></blockquote></div></blockquote></div></div>