[swift-users] Swift 3.1 String(

Maxim Veksler maxim at vekslers.org
Wed Apr 5 09:26:50 CDT 2017


Hi,

Swift 3.1 compiler seems to introduces a new complier warning regarding
String(describing: )

So this line:

Log.info("Update name for user \(fbUser)")


Produces the warning: "note: use 'String(describing:)' to silence this
warning"


and becomes this line

Log.info("Update name for user \(String(describing: fbUser))")


This new syntax is not very sexy, especially for logging. Any suggestions,
possibility on the API end of Log to make this warning go away? or write it
differently.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20170405/8e961b76/attachment.html>


More information about the swift-users mailing list