[swift-evolution] [Proposal] Enum string interoperability with Objective-C and Swift

Derrick Ho wh1pch81n at gmail.com
Wed Nov 23 07:55:17 CST 2016

I think enum strings should gain better interoperability with swift.
Something like this: enum City: String {     case NewYork = "New York" }
This can be ported over to Objective-c like this: typedef NSString * City;
static City const City_NewYork = @"New York";
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20161123/79af8440/attachment.html>

More information about the swift-evolution mailing list