[swift-users] What is up with names not being Strings any more in Swift 4?

Greg Parker gparker at apple.com
Mon Jul 17 17:57:54 CDT 2017

> On Jul 17, 2017, at 10:01 AM, Nevin Brackett-Rozinsky via swift-users <swift-users at swift.org> wrote:
> Could / should these types be ExpressibleByStringLiteral?

They should not. We are deliberately discouraging the string literal of the name. The string literal should be in only one place: the definition of the name constant. Everything else should use the constant. The compiler can provide autocompletion and typo detection of the constant. The string literal doesn't get that. 

Greg Parker     gparker at apple.com <mailto:gparker at apple.com>     Runtime Wrangler

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20170717/70b8c1ad/attachment.html>

More information about the swift-users mailing list