[swift-users] Swift 3.1 String(
svabox at gmail.com
Wed Apr 5 13:13:34 CDT 2017
On 05.04.2017 20:30, David Sweeris via swift-users wrote:
>> On Apr 5, 2017, at 07:49, Rien via swift-users <swift-users at swift.org> wrote:
>>> On 05 Apr 2017, at 16:26, Maxim Veksler via swift-users <swift-users at swift.org> wrote:
>>> Swift 3.1 compiler seems to introduces a new complier warning regarding String(describing: )
>>> So this line:
>>> Log.info("Update name for user \(fbUser)”)
>> Log.info(“Update name for user \(fbUser ?? “Unknown”)”)
> I thought we couldn't nest quotes. Has that changed (because that would be fantastic)?
Yes, this is working currently.
Btw, also should be mentioned that fbUser.debugDescription can be used
explicitly to silence the warning, but 'Optional("username")' will be
printed in log (instead of just 'username').
> - Dave Sweeris
> swift-users mailing list
> swift-users at swift.org
More information about the swift-users